Class Signal
java.lang.Object
java.lang.Throwable
java.lang.Error
com.swiftmq.impl.mqtt.v311.netty.util.Signal
- All Implemented Interfaces:
Constant<Signal>
,Serializable
,Comparable<Signal>
A special
Error
which is used to signal some state or request by throwing it.
Signal
has an empty stack trace and has no cause to save the instantiation overhead.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
Check if the givenSignal
is the same as this instance.int
hashCode()
int
id()
Returns the unique number assigned to thisConstant
.name()
Returns the name of thisConstant
.toString()
static Signal
static Signal
Returns theSignal
of the specified name.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Method Details
-
valueOf
Returns theSignal
of the specified name. -
valueOf
-
expect
Check if the givenSignal
is the same as this instance. If not anIllegalStateException
will be thrown. -
initCause
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-
id
public int id()Description copied from interface:Constant
Returns the unique number assigned to thisConstant
. -
name
Description copied from interface:Constant
Returns the name of thisConstant
. -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Signal>
-
toString
-