java.lang.Object
org.glassfish.grizzly.CloseReason
An object, describing the reason why
Connection was closed.- Author:
- Alexey Stashok
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns information about an error, that caused theConnectionto be closed.getType()Return information whetherConnectionwas 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 whetherConnectionwas closed locally or remotely.- Returns:
- information whether
Connectionwas closed locally or remotely
-
getCause
Returns information about an error, that caused theConnectionto be closed. If the cause wasn't specified by user and it was closed locally thenLOCALLY_CLOSEDwill be returned. If the cause wasn't specified by user and it was closed remotely thenREMOTELY_CLOSEDwill be returned.- Returns:
- information about an error, that caused the
Connectionto be closed
-
toString
Returns also type and cause.
-