public class ThreadEventNotifierImpl extends java.lang.Object implements ThreadEventNotifier
ThreadEventNotifier
, available as service
hivemind.ThreadEventNotifier
.Constructor and Description |
---|
ThreadEventNotifierImpl() |
ThreadEventNotifierImpl(org.apache.commons.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
void |
addThreadCleanupListener(ThreadCleanupListener listener)
Adds the listener.
|
void |
fireThreadCleanup()
Invokes
ThreadCleanupListener.threadDidCleanup() on all listeners, and discards the
list of listeners. |
void |
removeThreadCleanupListener(ThreadCleanupListener listener)
Removes the listener, if it has been previously added.
|
public ThreadEventNotifierImpl()
public ThreadEventNotifierImpl(org.apache.commons.logging.Log log)
public void addThreadCleanupListener(ThreadCleanupListener listener)
ThreadEventNotifier
ThreadEventNotifier.fireThreadCleanup()
is
invoked, at which point is discarded.addThreadCleanupListener
in interface ThreadEventNotifier
public void removeThreadCleanupListener(ThreadCleanupListener listener)
ThreadEventNotifier
ThreadEventNotifier.fireThreadCleanup()
.removeThreadCleanupListener
in interface ThreadEventNotifier
public void fireThreadCleanup()
ThreadEventNotifier
ThreadCleanupListener.threadDidCleanup()
on all listeners, and discards the
list of listeners.fireThreadCleanup
in interface ThreadEventNotifier