public class CloseReason extends Object
Connection
was closed.Modifier and Type | Field and Description |
---|---|
static CloseReason |
LOCALLY_CLOSED_REASON |
static CloseReason |
REMOTELY_CLOSED_REASON |
Constructor and Description |
---|
CloseReason(CloseType type,
IOException cause) |
Modifier and Type | Method and Description |
---|---|
IOException |
getCause()
Returns information about an error, that caused the
Connection to
be closed. |
CloseType |
getType()
Return information whether
Connection was closed locally or remotely. |
public static final CloseReason LOCALLY_CLOSED_REASON
public static final CloseReason REMOTELY_CLOSED_REASON
public CloseReason(CloseType type, IOException cause)
public CloseType getType()
Connection
was closed locally or remotely.Connection
was closed locally or remotelypublic IOException getCause()
Connection
to
be closed.
If the cause wasn't specified by user - the default value #DEFAULT_CAUSE
will be returned.Connection
to
be closedCopyright © 2015 Oracle Corporation. All rights reserved.