java.lang.Object | |
↳ | com.rabbitmq.client.impl.ShutdownNotifierComponent |
Known Direct Subclasses |
Known Indirect Subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add shutdown listener.
| |||||||||||
Get the shutdown reason object
| |||||||||||
Determine whether the component is currently open.
| |||||||||||
Protected API - notify the listeners attached to the component
| |||||||||||
Remove shutdown listener for the component.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.rabbitmq.client.ShutdownNotifier
|
Add shutdown listener. If the component is already closed, handler is fired immediately
listener | ShutdownListener to the component
|
---|
Get the shutdown reason object
Determine whether the component is currently open. Will return false if we are currently closing. Checking this method should be only for information, because of the race conditions - state can change after the call. Instead just execute and try to catch ShutdownSignalException and IOException
Protected API - notify the listeners attached to the component
Remove shutdown listener for the component.
listener | ShutdownListener to be removed
|
---|