public interface EventProducer extends Remote
| Modifier and Type | Method and Description |
|---|---|
EventRegistration |
register(EventDescriptor descriptor,
RemoteEventListener listener,
MarshalledObject handback,
long duration)
The register method creates a leased
EventRegistration for the
EventDescriptor type passed in based on the requested lease duration. |
EventRegistration register(EventDescriptor descriptor, RemoteEventListener listener, MarshalledObject handback, long duration) throws LeaseDeniedException, UnknownEventException, RemoteException
EventRegistration for the
EventDescriptor type passed in based on the requested lease duration.descriptor - The EventDescriptor to registerlistener - A RemoteEventListenerhandback - A MarshalledObject referencing a handback object to be used with Event
notificationduration - Requested EventRegistration lease durationNullPointerException - if the descriptor parameter is nullUnknownEventException - if the service does not produce events described by the
EventDescriptorLeaseDeniedException - if the duration parameter is not acceptedRemoteException - if communication errors occurCopyright © GigaSpaces.