|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventConsumer
The EventConsumer defines the semantics for a client to register and receive remote event notifications
| Method Summary | |
|---|---|
boolean |
deregister(RemoteServiceEventListener listener)
Informs the EventConsumer to de-register for event notifications across all discovered EventProducer instances. |
Object |
getEventRegistrationSource(long eventID)
Returns the source object returned as part of the EventRegistration |
boolean |
register(RemoteServiceEventListener listener)
Informs the EventConsumer to register for event notifications to all discovered EventProducer instances that provide support for the event
described in an EventDescriptor |
boolean |
register(RemoteServiceEventListener listener,
MarshalledObject handback)
Informs the EventConsumer to register for event notifications to all discovered EventProducer instances that provide support for the event
described in an EventDescriptor. |
void |
terminate()
The terminate method will de-register for event notifications across all discovered EventProducer instances. |
| Methods inherited from interface net.jini.core.event.RemoteEventListener |
|---|
notify |
| Method Detail |
|---|
boolean register(RemoteServiceEventListener listener)
throws RemoteException
EventProducer instances that provide support for the event
described in an EventDescriptor
listener - The RemoteServiceEventListener
RemoteException - if communication errors occur
boolean register(RemoteServiceEventListener listener,
MarshalledObject handback)
throws RemoteException
EventProducer instances that provide support for the event
described in an EventDescriptor. This method provides the ability to pass
a MarshalledObject as part of the registration
listener - The RemoteServiceEventListenerhandback - The MarshalledObject to use when registering
RemoteException - if communication errors occur
boolean deregister(RemoteServiceEventListener listener)
throws RemoteException
EventProducer instances. Invocation of this method will
result in the cancellation of any leases involved with event registration
and the removal from the event notification pool
listener - The RemoteServiceEventListener
RemoteException - if communication errors occur
Object getEventRegistrationSource(long eventID)
throws RemoteException
EventRegistration
eventID - The eventID
RemoteException - if communication errors occur
void terminate()
throws RemoteException
EventProducer instances. Invocation of this method will result
in the cancellation of any leases involved with event registration and
the removal from the event notification pool. This method will also
unexport the EventConsumer, removing it from the RMI runtime
RemoteException - if communication errors occur
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||