com.rabbitmq.client
public class ShutdownSignalException extends java.lang.RuntimeException implements SensibleClone<ShutdownSignalException>
getReference()
we will
either get a reference to the Connection or Channel instance that fired
this exception.Constructor and Description |
---|
ShutdownSignalException(boolean hardError,
boolean initiatedByApplication,
java.lang.Object reason,
java.lang.Object ref)
Construct a ShutdownSignalException from the arguments.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getReason() |
java.lang.Object |
getReference() |
boolean |
isHardError() |
boolean |
isInitiatedByApplication() |
ShutdownSignalException |
sensibleClone()
Like Object.clone but sensible; in particular, public and declared to return
the right type.
|
public ShutdownSignalException(boolean hardError, boolean initiatedByApplication, java.lang.Object reason, java.lang.Object ref)
hardError
- the relevant hard errorinitiatedByApplication
- if the shutdown was client-initiatedreason
- Object describing the origin of the exceptionref
- Reference to Connection or Channel that fired the signalpublic boolean isHardError()
public boolean isInitiatedByApplication()
public java.lang.Object getReason()
public java.lang.Object getReference()
public ShutdownSignalException sensibleClone()
SensibleClone
sensibleClone
in interface SensibleClone<ShutdownSignalException>