|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.rabbitmq.client.impl.ShutdownNotifierComponent
public class ShutdownNotifierComponent
| Field Summary | |
|---|---|
ShutdownSignalException |
_shutdownCause
When this value is null, the component is in an "open" state. |
java.util.List<ShutdownListener> |
listeners
List of all shutdown listeners associated with the component |
| Constructor Summary | |
|---|---|
ShutdownNotifierComponent()
|
|
| Method Summary | |
|---|---|
void |
addShutdownListener(ShutdownListener listener)
Add shutdown listener. |
ShutdownSignalException |
getCloseReason()
Get the shutdown reason object |
boolean |
isOpen()
Determine whether the component is currently open. |
void |
notifyListeners()
Protected API - notify the listeners attached to the component |
void |
removeShutdownListener(ShutdownListener listener)
Remove shutdown listener for the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.List<ShutdownListener> listeners
public volatile ShutdownSignalException _shutdownCause
| Constructor Detail |
|---|
public ShutdownNotifierComponent()
| Method Detail |
|---|
public void addShutdownListener(ShutdownListener listener)
ShutdownNotifier
addShutdownListener in interface ShutdownNotifierlistener - ShutdownListener to the componentpublic ShutdownSignalException getCloseReason()
ShutdownNotifier
getCloseReason in interface ShutdownNotifierpublic void notifyListeners()
ShutdownNotifier
notifyListeners in interface ShutdownNotifierShutdownListenerpublic void removeShutdownListener(ShutdownListener listener)
ShutdownNotifier
removeShutdownListener in interface ShutdownNotifierlistener - ShutdownListener to be removedpublic boolean isOpen()
ShutdownNotifier
isOpen in interface ShutdownNotifier
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||