Please note that this documentation is not final and is subject to change.

Java™ Platform
Standard Ed. 7

DRAFT ea-b76

javax.management.event
Interface EventForwarder

All Known Implementing Classes:
FetchingEventForwarder, RMIPushEventForwarder

public interface EventForwarder

This interface can be used to specify a custom forwarding mechanism for EventClientDelegateMBean to forward events to the client.

See Also:
Custom notification transports

Method Summary
Modifier and Type Method and Description
 void close()
          Informs the EventForwarder to shut down.
 void forward(Notification n, Integer listenerId)
          Forwards a notification.
 void setClientId(String clientId)
          Sets an event client identifier created by EventClientDelegateMBean.
 

Method Detail

forward

void forward(Notification n,
             Integer listenerId)
             throws IOException
Forwards a notification.

Parameters:
n - The notification to be forwarded to a remote listener.
listenerId - The identifier of the listener to receive the notification.
Throws:
IOException - If it is closed or an I/O error occurs.

close

void close()
           throws IOException
Informs the EventForwarder to shut down.

After this method is called, any call to the method forward(Notification, Integer) may get an IOException.

Throws:
IOException - If an I/O error occurs.

setClientId

void setClientId(String clientId)
                 throws IOException
Sets an event client identifier created by EventClientDelegateMBean.

This method will be called just after this EventForwarder is constructed and before calling the forward method to forward any notifications.

Throws:
IOException

Java™ Platform
Standard Ed. 7

DRAFT ea-b76

Submit a bug or feature

Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.