Package io.netty.util
Class Signal
java.lang.Object
java.lang.Throwable
java.lang.Error
io.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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Signal.SignalConstantprivate static final ConstantPool<Signal> private static final long -
Constructor Summary
Constructors -
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
pool
-
constant
-
-
Constructor Details
-
Signal
Creates a newSignalwith the specifiedname.
-
-
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
-