Package org.jini.rio.event
Interface EventProducer
- All Superinterfaces:
Remote
- All Known Subinterfaces:
PUServiceBean,Service
- All Known Implementing Classes:
org.jini.rio.resources.servicecore.AbstractProxy,PUServiceBeanImpl,PUServiceBeanProxy,org.jini.rio.jsb.ServiceBeanAdapter,org.jini.rio.resources.servicecore.ServiceProvider
The EventProducer defines the support for an event consumer to register for events a service
produces
-
Method Summary
Modifier and TypeMethodDescriptionregister(EventDescriptor descriptor, RemoteEventListener listener, MarshalledObject handback, long duration) The register method creates a leasedEventRegistrationfor the EventDescriptor type passed in based on the requested lease duration.
-
Method Details
-
register
EventRegistration register(EventDescriptor descriptor, RemoteEventListener listener, MarshalledObject handback, long duration) throws LeaseDeniedException, UnknownEventException, RemoteException The register method creates a leasedEventRegistrationfor the EventDescriptor type passed in based on the requested lease duration.- Parameters:
descriptor- The EventDescriptor to registerlistener- A RemoteEventListenerhandback- A MarshalledObject referencing a handback object to be used with Event notificationduration- Requested EventRegistration lease duration- Returns:
- An EventRegistration
- Throws:
NullPointerException- 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 occur
-