Interface ShutdownListenable
- All Known Implementing Classes:
JBossScheduledThreadPoolExecutor, JBossThreadPoolExecutor, QueueExecutor, QueuelessExecutor, SimpleShutdownListenable
public interface ShutdownListenable
An object which can have shutdown listeners registered on it.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescription<A> voidaddShutdownListener(EventListener<A> shutdownListener, A attachment) Add a shutdown listener.
-
Method Details
-
addShutdownListener
Add a shutdown listener. If the target object is already shut down, the listener is invoked directly.- Type Parameters:
A- the attachment type- Parameters:
shutdownListener- the listenerattachment- the attachment value to pass to the listener
-