public enum SessionIncident extends Enum<SessionIncident>
enum
that represents session incidents that may occur during processing
of I/O or protocol related operations.Enum Constant and Description |
---|
CLOSED_WITHOUT_CLOSE_MESSAGE
A connection closed by peer without sending proper close message.
|
DECODING_PIPELINE_FAILURE
A failure occurred while decoding data received from a remote peer.
|
ENCODING_PIPELINE_FAILURE
A failure occurred while encoding data passed to write/send methods.
|
SCTP_SENDING_FAILURE
A failure occurred while sending a message via the SCTP channel.
|
SSL_CLOSED_WITHOUT_CLOSE_NOTIFY
SSL/TLS connection closed by peer without sending close_notify.
|
Modifier and Type | Method and Description |
---|---|
String |
defaultMessage()
Gets the default warning or error message that will be logged when an
implementation of
IHandler.incident(org.snf4j.core.handler.SessionIncident, java.lang.Throwable) method returns
false . |
static SessionIncident |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionIncident[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionIncident SSL_CLOSED_WITHOUT_CLOSE_NOTIFY
Default action: the default message is logged at the WARN level.
public static final SessionIncident CLOSED_WITHOUT_CLOSE_MESSAGE
Default action: the default message is logged at the WARN level.
public static final SessionIncident ENCODING_PIPELINE_FAILURE
Default action: the default message is logged at the ERROR level.
public static final SessionIncident DECODING_PIPELINE_FAILURE
NOTE: If such failure occurs while decoding data for the stream-oriented sessions then only an exception is reported.
Default action: the default message is logged at the ERROR level.
public static final SessionIncident SCTP_SENDING_FAILURE
IOException
.
Default action: the default message is logged at the ERROR level.
public static SessionIncident[] values()
for (SessionIncident c : SessionIncident.values()) System.out.println(c);
public static SessionIncident valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String defaultMessage()
IHandler.incident(org.snf4j.core.handler.SessionIncident, java.lang.Throwable)
method returns
false
.Copyright © 2017–2021 SNF4J.ORG. All rights reserved.