org.jnp.server
Class ExecutorEventMgr
java.lang.Object
org.jnp.server.ExecutorEventMgr
- All Implemented Interfaces:
- EventMgr
public class ExecutorEventMgr
- extends Object
- implements EventMgr
An EventMgr implementation that uses an Executor to dispatch the events
in the background.
- Version:
- $Revision:$
- Author:
- Scott.Stark@jboss.org
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecutorEventMgr
public ExecutorEventMgr()
getExecutor
public Executor getExecutor()
setExecutor
public void setExecutor(Executor executor)
fireEvent
public void fireEvent(Name fullName,
Binding oldb,
Binding newb,
int type,
String changeInfo,
EventListeners listeners,
Set<Integer> scopes)
- Description copied from interface:
EventMgr
- Dispatch an event to the listeners.
- Specified by:
fireEvent in interface EventMgr
- Parameters:
fullName - - the full path of name of the event locationoldb - - the possibly old binding of the eventnewb - - the possibly new binding of the eventtype - - one of NamingEvent.OBJECT_ADDED,
NamingEvent.OBJECT_CHANGED,
NamingEvent.OBJECT_REMOVED events.changeInfo - - the provider specific change information. The current
impl passes in the name of the operation that generated the event.listeners - - the list of NamingListener info for the EventContext
associated with the event.scopes - - a set of the EventContext scopes that apply.
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.