public interface ChannelFsmConfig
| Modifier and Type | Method and Description |
|---|---|
ChannelActions |
getChannelActions()
Get the
ChannelActions delegate. |
java.util.concurrent.Executor |
getExecutor()
Get the
Executor to use. |
java.lang.String |
getLoggerName()
Get the logger name the FSM should use.
|
java.util.Map<java.lang.String,java.lang.String> |
getLoggingContext()
Get the logging context Map a
ChannelFsm instance will use. |
int |
getMaxIdleSeconds()
Get the maximum amount of time, in seconds, before a keep alive occurs on an idle channel.
|
int |
getMaxReconnectDelaySeconds()
Get the maximum delay to occur between reconnect attempts.
|
Scheduler |
getScheduler()
Get the
Scheduler to use. |
boolean |
isLazy()
true if the ChannelFsm should be lazy, i.e. |
boolean |
isPersistent()
true if the ChannelFsm should be persistent in its initial connect attempt, i.e. |
static ChannelFsmConfigBuilder |
newBuilder()
Create a new
ChannelFsmConfigBuilder. |
boolean isLazy()
true if the ChannelFsm should be lazy, i.e. after an unintentional channel disconnect it waits in an
Idle state until the Channel is requested via ChannelFsm.connect() or ChannelFsm.getChannel().true if the ChannelFsm should be lazy,boolean isPersistent()
true if the ChannelFsm should be persistent in its initial connect attempt, i.e. if the initial attempt
to connect initiated by ChannelFsm.connect()} fails, it will immediately move into a reconnecting state
and continue to try and establish a connection.
Each time a connection attempt fails, including the first, the outstanding
CompletableFutures will be completed exceptionally.
true if the ChannelFsm should be persistent in its initial connect attempt.int getMaxIdleSeconds()
An idle channel is one that that hasn't read any bytes within the time defined by this value.
Return 0 to disable keep alives.
int getMaxReconnectDelaySeconds()
The delay is increased exponentially starting at 1 second until the maximum delay, e.g. (1, 2, 4, 8, 16, 32, 32, 32, 32...).
ChannelActions getChannelActions()
ChannelActions delegate.ChannelActions delegate.java.util.concurrent.Executor getExecutor()
Executor to use.Executor to use.java.lang.String getLoggerName()
java.util.Map<java.lang.String,java.lang.String> getLoggingContext()
ChannelFsm instance will use.
Keys and values in the Map will be set on the SLF4J MDC when logging.
ChannelFsm instance will use.static ChannelFsmConfigBuilder newBuilder()
ChannelFsmConfigBuilder.ChannelFsmConfigBuilder.