org.jboss.threads
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
addShutdownListener
<A> void addShutdownListener(EventListener<A> shutdownListener,
A attachment)
- 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
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.