Replace the ConnectionHandler for this connection with a new one.
Replace the ConnectionHandler for this connection with a new one. The existing handler will go through its shutdown process before the switch is made. Returns false if the connection is not connected or is already in the middle of another shutdown process, true otherwise
The current state of the underlying connection
The current state of the underlying connection
The context for the connection
The context for the connection
Gracefully shutdown the connection.
Gracefully shutdown the connection. This will allow the connection handler to go through its shutdown procedure. Thus there is no guarantee of exactly when the connection actually closes.
Immediately shutdown the connection.
Immediately shutdown the connection. This skips any shutdown process.
This disconnection is not considered an error and the connection handler
will receive a DisconnectCause of Disconnect
Immediately shutdown the connection.
Immediately shutdown the connection. The disconnection will be treated as
an error and the ConnectionHandler will receive an Error
DisconnectCause
These are the methods the Core layer directly exposes to its downstream neighbor which are generally not meant to be exposed further downstream