public class ReconnConf extends Object
| 构造器和说明 |
|---|
ReconnConf() |
ReconnConf(long interval) |
ReconnConf(long interval,
int retryCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getInterval() |
LinkedBlockingQueue<ChannelContext> |
getQueue() |
int |
getRetryCount() |
ThreadPoolExecutor |
getThreadPoolExecutor() |
static boolean |
isNeedReconn(ClientChannelContext clientChannelContext,
boolean putIfTrue) |
static void |
put(ClientChannelContext clientChannelContext) |
void |
setInterval(long interval) |
void |
setRetryCount(int retryCount) |
public ReconnConf()
public ReconnConf(long interval)
interval - public ReconnConf(long interval,
int retryCount)
interval - retryCount - public static boolean isNeedReconn(ClientChannelContext clientChannelContext, boolean putIfTrue)
public static void put(ClientChannelContext clientChannelContext)
public long getInterval()
public LinkedBlockingQueue<ChannelContext> getQueue()
public int getRetryCount()
public ThreadPoolExecutor getThreadPoolExecutor()
public void setInterval(long interval)
interval - the interval to setpublic void setRetryCount(int retryCount)
retryCount - the retryCount to setCopyright © 2018. All rights reserved.