JBoss Threads 2.0.0.GA

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

Method Summary
<A> void
addShutdownListener(EventListener<A> shutdownListener, A attachment)
          Add a shutdown listener.
 

Method Detail

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 listener
attachment - the attachment value to pass to the listener

JBoss Threads 2.0.0.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.