java.lang.Object
org.glassfish.grizzly.CloseReason
An object, describing the reason why
Connection
was closed.- Author:
- Alexey Stashok
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Returns information about an error, that caused theConnection
to be closed.getType()
Return information whetherConnection
was closed locally or remotely.toString()
Returns also type and cause.
-
Field Details
-
LOCALLY_CLOSED_REASON
-
REMOTELY_CLOSED_REASON
-
-
Constructor Details
-
CloseReason
-
-
Method Details
-
getType
Return information whetherConnection
was closed locally or remotely.- Returns:
- information whether
Connection
was closed locally or remotely
-
getCause
Returns information about an error, that caused theConnection
to be closed. If the cause wasn't specified by user and it was closed locally thenLOCALLY_CLOSED
will be returned. If the cause wasn't specified by user and it was closed remotely thenREMOTELY_CLOSED
will be returned.- Returns:
- information about an error, that caused the
Connection
to be closed
-
toString
Returns also type and cause.
-