public final class Signal extends Error implements Constant<Signal>
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.Modifier and Type | Method and Description |
---|---|
int |
compareTo(Signal other) |
boolean |
equals(Object obj) |
void |
expect(Signal signal)
Check if the given
Signal is the same as this instance. |
Throwable |
fillInStackTrace() |
int |
hashCode() |
int |
id()
Returns the unique number assigned to this
Constant . |
Throwable |
initCause(Throwable cause) |
String |
name()
Returns the name of this
Constant . |
String |
toString() |
static Signal |
valueOf(Class<?> firstNameComponent,
String secondNameComponent)
|
static Signal |
valueOf(String name)
Returns the
Signal of the specified name. |
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public void expect(Signal signal)
Signal
is the same as this instance. If not an IllegalStateException
will
be thrown.public Throwable fillInStackTrace()
fillInStackTrace
in class Throwable
public int id()
Constant
Constant
.public String name()
Constant
Constant
.public int compareTo(Signal other)
compareTo
in interface Comparable<Signal>
Copyright © 2008–2024 The Netty Project. All rights reserved.