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 TypeMethodDescriptionintbooleanvoidCheck if the givenSignalis the same as this instance.inthashCode()intid()Returns the unique number assigned to thisConstant.name()Returns the name of thisConstant.toString()static Signalstatic SignalReturns theSignalof the specified name.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Method Details
-
valueOf
Returns theSignalof the specified name. -
valueOf
-
expect
Check if the givenSignalis the same as this instance. If not anIllegalStateExceptionwill be thrown. -
initCause
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
id
public int id()Description copied from interface:ConstantReturns the unique number assigned to thisConstant. -
name
Description copied from interface:ConstantReturns the name of thisConstant. -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Signal>
-
toString
-