|
Oracle Communications Services Gatekeeper Java API Reference 7.0.0.1 E96578-01 |
||||||||||
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 | |
abstract void |
deactivateAllListeners()
|
abstract void |
publishEvent(java.lang.String eventType,
java.io.Serializable event,
boolean block)
Publish the event to all the nodes in the cluster. |
abstract void |
publishEventToOneNode(java.lang.String eventType,
java.io.Serializable event,
boolean block)
Publish the event to one node. |
abstract void |
registerEventListener(EventChannelListener listener,
java.lang.String eventType)
Register a new listener on the event channel. |
abstract void |
unregisterEventListener(EventChannelListener listener)
Unregister an event listener. |
Method Detail |
public void deactivateAllListeners()
public void publishEvent(java.lang.String eventType, java.io.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.
java.lang.IllegalStateException
- if publishing event before the service is
ready.public void publishEventToOneNode(java.lang.String eventType, java.io.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.
java.lang.IllegalStateException
- if publishing event before the service is
ready.public void registerEventListener(EventChannelListener listener, java.lang.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 7.0.0.1 E96578-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |