Rio Project 4.2 API Documentation
org.rioproject.event
Class DispatchEventHandler
java.lang.Object
org.rioproject.event.EventHandler
org.rioproject.event.DispatchEventHandler
public class DispatchEventHandler
- extends EventHandler
The DispatchEventHandler provides an implementation of an
EventHandler which supports the notification of events to all
registered event listeners with a valid lease.
Event registrations are leased and explicitly checked prior to each
notification being sent to the remote event listener
The sequence number for events is incremented after each subsequent fire
invocation.
- Author:
- Dennis Reedy
| Fields inherited from class org.rioproject.event.EventHandler |
descriptor, ektime, landlord, resourceMgr, RESPONSE_WATCH, responseWatch, sendTime, sent, sequenceNumber, sktime, step, t0, t1, tmp, watchRegistry |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DispatchEventHandler
public DispatchEventHandler(EventDescriptor descriptor)
throws Exception
- Construct a DispatchEventHandler with an EventDescriptor and default
lease maximum and time allocation
- Parameters:
descriptor - The EventDescriptor
- Throws:
Exception - If a landlord lease manager cannot be created
DispatchEventHandler
public DispatchEventHandler(EventDescriptor descriptor,
Configuration config)
throws Exception
- Construct a DispatchEventHandler with an EventDescriptor and a
Configuration object
- Parameters:
descriptor - The EventDescriptorconfig - The configuration object
- Throws:
Exception - If a landlord lease manager cannot be created
fire
public void fire(RemoteServiceEvent event)
- Implement the
fire method from EventHandler
- Specified by:
fire in class EventHandler
- Parameters:
event - The event to send
Copyright © 2006-2011 Rio Project. All Rights Reserved.