public final class SimpleShutdownListenable extends Object implements ShutdownListenable
Constructor and Description |
---|
SimpleShutdownListenable() |
Modifier and Type | Method and Description |
---|---|
<A> void |
addShutdownListener(EventListener<A> shutdownListener,
A attachment)
Add a shutdown listener.
|
void |
shutdown()
Run and remove all registered listeners, and mark this object as having been shut down so that
future listeners are invoked immediately.
|
public <A> void addShutdownListener(EventListener<A> shutdownListener, A attachment)
addShutdownListener
in interface ShutdownListenable
A
- the attachment typeshutdownListener
- the listenerattachment
- the attachment value to pass to the listenerpublic void shutdown()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.