|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Utility service used to generate and receive events in a 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 on the event channel. |
void |
unregisterEventListener(EventChannelListener listener) Unregister an event listener. |
Method Detail |
public void deactivateAllListeners()
public void publishEvent(String eventType, Serializable event, boolean block)
eventType
- The event type string.event
- The event in the form of a Serializable.block
- If true, the caller will be blocked until 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 string.event
- The event in the form of a Serializable.block
- 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 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |