|
|||||||||
| 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
A class that manages ShutdownListeners and remembers the reason for a shutdown. Both
Channels and Connections have shutdown listeners.
| 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. |
boolean |
setShutdownCauseIfOpen(ShutdownSignalException sse)
Internal: this is the means of registering shutdown. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 ShutdownNotifierpublic boolean setShutdownCauseIfOpen(ShutdownSignalException sse)
sse - the reason for the shutdown
true if the component is open; false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||