public class ReconnConf extends Object
| 构造器和说明 |
|---|
ReconnConf() |
ReconnConf(long interval) |
ReconnConf(long interval,
int retryCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2023. All rights reserved.