public class LRMIRemoteEventListener extends RemoteStub<RemoteEventListener> implements ManagedRemoteEventListener
OneWayRemoteCall
,
Serialized FormConstructor and Description |
---|
LRMIRemoteEventListener() |
LRMIRemoteEventListener(RemoteEventListener directRefProxy,
RemoteEventListener dynamicProxy)
constructor to initialize notify remote event listener
|
Modifier and Type | Method and Description |
---|---|
void |
init(GSEventRegistration registration)
Recursive initialization of managed listener.
|
void |
notify(RemoteEvent event)
Notify the listener about an event.
|
void |
shutdown(GSEventRegistration registration)
lifecycle recursive callback for the managed listener.
|
closeProxy, disable, enable, equals, getConnectionUrl, getDynamicProxy, getGeneratedTraffic, getProxy, getReceivedTraffic, getRemoteHostAddress, getRemoteHostName, getRemoteNetworkAddress, getRemoteProcessId, getServicePlatformLogicalVersion, getStubId, hashCode, init, isClosed, isCollocated, isCollocatedStub, isDirect, isRemote, isStub, overrideMethodsMetadata, readExternal, toString, writeExternal
public LRMIRemoteEventListener()
public LRMIRemoteEventListener(RemoteEventListener directRefProxy, RemoteEventListener dynamicProxy)
public void shutdown(GSEventRegistration registration)
ManagedRemoteEventListener
shutdown
in interface ManagedRemoteEventListener
public void notify(RemoteEvent event) throws RemoteException, UnknownEventException
RemoteEventListener
The call to notify is synchronous to allow the party making the call to know if the call succeeded. However, it is not part of the semantics of the call that the notification return can be delayed while the recipient of the call reacts to the occurrence of the event. Simply put, the best strategy on the part of the recipient is to note the occurrence in some way and then return from the notify method as quickly as possible.
UnknownEventException is thrown when the recipient does not recognize the combination of the event identifier and the event source as something in which it is interested. Throwing this exception has the effect of asking the sender to not send further notifications of this kind of event from this source in the future.
notify
in interface RemoteEventListener
event
- the remote event that occurredUnknownEventException
- the recipient does not recognize the combination of event
identifier and event sourceRemoteException
public void init(GSEventRegistration registration)
ManagedRemoteEventListener
init
in interface ManagedRemoteEventListener
Copyright © GigaSpaces.