|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteEventProducer
A RemoteEventProducer can dispatch events that are re-dispatched by the equivalent objects across the cluster. If a ClusterRole.MASTER room dispatches a remote event it is re-dispatched by each ClusterRole.SLAVE room across the cluster. If a ClusterRole.SLAVE room dispatches a remote event it is re-dispatched by the ClusterRole.MASTER room. If the server dispatches a remote event it is re-dispatched by each server on the cluster.
Method Summary | |
---|---|
void |
addRemoteEventListener(java.lang.String event,
java.lang.Object callbackObject,
java.lang.String callbackMethod)
Adds an event listener to this RemoteEventProducer. |
void |
dispatchRemoteEvent(java.lang.String eventName,
RemoteEvent evt)
Has the event producer dispatch a remote event. |
void |
dispatchRemoteEvent(java.lang.String eventName,
RemoteEvent evt,
java.lang.String nodeID)
Has the event producer dispatch a remote event to the specified node only. |
java.util.Map<java.lang.String,java.lang.Class<? extends RemoteEvent>> |
getRemoteEventClassMap()
Returns a Map of declared remote events dispatched by the RemoteEventProducer keyed by event name and mapped to the remote event class that is dispatched. |
void |
removeRemoteEventListener(java.lang.String event,
java.lang.Object callbackObject,
java.lang.String callbackMethod)
Deregisters an event listener for an event from this RemoteEventProducer. |
Methods inherited from interface net.user1.union.core.event.EventProducer |
---|
addEventListener, dispatchEvent, getEventClassMap, removeEventListener |
Method Detail |
---|
void addRemoteEventListener(java.lang.String event, java.lang.Object callbackObject, java.lang.String callbackMethod)
event
- - the event the listener is interested incallbackObject
- - the object which will receive the event notificationcallbackMethod
- - the method that will be invoked on callbackObject for the event notificationvoid removeRemoteEventListener(java.lang.String event, java.lang.Object callbackObject, java.lang.String callbackMethod)
event
- - the event to longer be listened forcallbackObject
- - the object which was receiving the event notificationcallbackMethod
- - the method that was invoked on callbackObject for the event notificationjava.util.Map<java.lang.String,java.lang.Class<? extends RemoteEvent>> getRemoteEventClassMap()
void dispatchRemoteEvent(java.lang.String eventName, RemoteEvent evt)
eventName
- - the name of the event to dispatchevt
- - the remote event Object for the eventvoid dispatchRemoteEvent(java.lang.String eventName, RemoteEvent evt, java.lang.String nodeID)
eventName
- - the name of the event to dispatchevt
- - the event Object for the eventnodeID
- - the nodeID to which the event will be dispatched
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |