|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventForwarder
This interface can be used to specify a custom forwarding mechanism for
EventClientDelegateMBean to forward events to the client.
| 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 |
|---|
void forward(Notification n,
Integer listenerId)
throws IOException
n - The notification to be forwarded to a remote listener.listenerId - The identifier of the listener to receive the notification.IOException - If it is closed or an I/O error occurs.
void close()
throws IOException
EventForwarder to shut down.
After this method is called, any call to the method
forward(Notification, Integer) may get an IOException.
IOException - If an I/O error occurs.
void setClientId(String clientId)
throws IOException
EventClientDelegateMBean.
This method will be called just after this EventForwarder
is constructed and before calling the forward method to forward any
notifications.
IOException
|
Java™ Platform Standard Ed. 7 DRAFT ea-b76 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.