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 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
This is implemented by colossus.core.PipelineHandler and contains all the methods made available to all layers extending the core layer