public class ReconnConf extends Object
| Constructor and Description |
|---|
ReconnConf() |
ReconnConf(long interval) |
ReconnConf(long interval,
int retryCount) |
| Modifier and Type | Method and Description |
|---|---|
long |
getInterval() |
static ReconnConf |
getReconnConf(ChannelContext channelContext) |
static ReconnConf |
getReconnConf(ClientChannelContext clientChannelContext) |
int |
getRetryCount()
连续重连次数,当连续重连这么多次都失败时,不再重连。
|
TimerTaskService |
getTaskService() |
TioClient |
getTioClient() |
static boolean |
isNeedReconn(ClientChannelContext clientChannelContext,
boolean putIfNeedConn) |
static boolean |
put(ClientChannelContext clientChannelContext) |
public ReconnConf()
public ReconnConf(long interval)
public ReconnConf(long interval,
int retryCount)
public TimerTaskService getTaskService()
public TioClient getTioClient()
public static ReconnConf getReconnConf(ClientChannelContext clientChannelContext)
public static ReconnConf getReconnConf(ChannelContext channelContext)
public static boolean isNeedReconn(ClientChannelContext clientChannelContext, boolean putIfNeedConn)
clientChannelContext - ClientChannelContextputIfNeedConn - 如果需要重连,则把该ClientChannelContext放到重连队列中public static boolean put(ClientChannelContext clientChannelContext)
clientChannelContext - ClientChannelContextpublic long getInterval()
public int getRetryCount()
Copyright © 2024. All rights reserved.