Package org.apache.pekko.io
Interface Tcp.ConnectionClosed
-
- All Superinterfaces:
DeadLetterSuppression
,NoSerializationVerificationNeeded
,Tcp.Event
,Tcp.Message
- All Known Implementing Classes:
Tcp.Aborted$
,Tcp.Closed$
,Tcp.ConfirmedClosed$
,Tcp.ErrorClosed
,Tcp.PeerClosed$
- Enclosing class:
- Tcp
public static interface Tcp.ConnectionClosed extends Tcp.Event, DeadLetterSuppression
This is the common interface for all events which indicate that a connection has been closed or half-closed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getErrorCause()
IfisErrorClosed
returns true, then the error condition can be retrieved by this method.boolean
isAborted()
true
iff the connection has been closed in response to anAbort
command.boolean
isConfirmed()
true
iff the connection has been fully closed in response to aConfirmedClose
command.boolean
isErrorClosed()
true
iff the connection has been closed due to an IO error.boolean
isPeerClosed()
true
iff the connection has been closed by the peer; in casekeepOpenOnPeerClosed
is in effect as per theTcp.Register
command, this connection’s reading half is now closed.
-
-
-
Method Detail
-
getErrorCause
java.lang.String getErrorCause()
IfisErrorClosed
returns true, then the error condition can be retrieved by this method.
-
isAborted
boolean isAborted()
true
iff the connection has been closed in response to anAbort
command.
-
isConfirmed
boolean isConfirmed()
true
iff the connection has been fully closed in response to aConfirmedClose
command.
-
isErrorClosed
boolean isErrorClosed()
true
iff the connection has been closed due to an IO error.
-
isPeerClosed
boolean isPeerClosed()
true
iff the connection has been closed by the peer; in casekeepOpenOnPeerClosed
is in effect as per theTcp.Register
command, this connection’s reading half is now closed.
-
-