Introduce a new overload that offers control over the behavior of SessionFsm::getChannel when the FSM is in the ReconnectWait state. When true, it behaves the same as the parameterless call and the CompletableFuture won't be completed until a connection attempt has been made. When false, the returned CompletableFuture will have already been completed exceptionally.
Introduce a new overload that offers control over the behavior of
SessionFsm::getChannel
when the FSM is in theReconnectWait
state. Whentrue
, it behaves the same as the parameterless call and theCompletableFuture
won't be completed until a connection attempt has been made. Whenfalse
, the returnedCompletableFuture
will have already been completed exceptionally.