public final class ReconnectRequest extends Object implements Delayed
Constructor and Description |
---|
ReconnectRequest(InetSocketAddressWrapper inetSocketAddressWrapper,
int tries,
long reconnectInterval) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Delayed o) |
long |
getDelay(TimeUnit unit) |
InetSocketAddressWrapper |
getInetSocketAddressWrapper()
Returns a reconnect socket address wrapper
|
int |
getTries()
Returns retry times
|
void |
setInetSocketAddressWrapper(InetSocketAddressWrapper inetSocketAddressWrapper) |
void |
setTries(int tries) |
void |
updateNextReconnectTimeStamp(long interval) |
public ReconnectRequest(InetSocketAddressWrapper inetSocketAddressWrapper, int tries, long reconnectInterval)
public int compareTo(Delayed o)
compareTo
in interface Comparable<Delayed>
public final InetSocketAddressWrapper getInetSocketAddressWrapper()
InetSocketAddressWrapper
public void updateNextReconnectTimeStamp(long interval)
public final void setInetSocketAddressWrapper(InetSocketAddressWrapper inetSocketAddressWrapper)
public final void setTries(int tries)
public final int getTries()
Copyright © 2021. All rights reserved.