|
Oracle Communications Services Gatekeeper Java API Reference 5.0 E21717-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This EventChannel utility service can be used to generate and recieve events in WLNG cluster. Events can be of any Serializable type.
Method Summary | |
void |
deactivateAllListeners() |
void |
publishEvent(String eventType, Serializable event, boolean block) Publish the event to all the nodes in the cluster. |
void |
publishEventToOneNode(String eventType, Serializable event, boolean block) Publish the event to one node. |
void |
registerEventListener(EventChannelListener listener, String eventType) Register a new listener to event channel. |
void |
unregisterEventListener(EventChannelListener listener) Unregisters an event listener. |
Method Detail |
public void deactivateAllListeners()
public void publishEvent(String eventType, Serializable event, boolean block)
eventType
- The event type stringevent
- The event in the form of a Serializableblock
- If true, the caller will be blocked till the event is processed by all the listeners of this event type. If false, the event will be guaranteed to be delivered but the caller will not wait for the listeners to process the event.IllegalStateException
- if publishing event before the service is ready.public void publishEventToOneNode(String eventType, Serializable event, boolean block)
eventType
- The event type stringevent
- The event in the form of a Serializableblock
- If true, the caller will be blocked till the event is processed by all the listeners of this event type. If false, the event will be guaranteed to be delivered but the caller will not wait for the listeners to process the event.IllegalStateException
- if publishing event before the service is ready.public void registerEventListener(EventChannelListener listener, String eventType)
listener
- The listener.eventType
- The type of the event. Event type string are global within WLNG.public void unregisterEventListener(EventChannelListener listener)
listener
- The listener.
|
Oracle Communications Services Gatekeeper Java API Reference 5.0 E21717-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |