org.jini.rio.event
Interface EventProducer
- All Superinterfaces:
- Remote
- All Known Subinterfaces:
- Cybernode, ProvisionMonitor, Service
- All Known Implementing Classes:
- AbstractProxy, BeanAdapter, CybernodeImpl, ProvisionMonitorImpl, ServiceBeanAdapter, ServiceProvider
public interface EventProducer
- extends Remote
The EventProducer defines the support for an event consumer to register for
events a service produces
register
EventRegistration register(EventDescriptor descriptor,
RemoteEventListener listener,
MarshalledObject handback,
long duration)
throws LeaseDeniedException,
UnknownEventException,
RemoteException
- The register method creates a leased
EventRegistration
for the EventDescriptor
type passed in based on the requested lease duration. The implied
semantics of notification are dependant on
EventHandler
specializations.
- 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 null
UnknownEventException
- if the service does not produce events described
by the EventDescriptor
LeaseDeniedException
- if the duration parameter is not accepted
RemoteException
- if communication errors occur
Copyright (c) 2005 Sun Microsystems, Inc.
Copyright (c) 2006 GigaSpaces Technologies, Inc.
All Rights Reserved.