net.rubyeye.xmemcached.impl
Class ReconnectRequest

java.lang.Object
  extended by net.rubyeye.xmemcached.impl.ReconnectRequest
All Implemented Interfaces:
java.lang.Comparable<java.util.concurrent.Delayed>, java.util.concurrent.Delayed

public final class ReconnectRequest
extends java.lang.Object
implements java.util.concurrent.Delayed

Auto reconnect request

Author:
dennis

Constructor Summary
ReconnectRequest(InetSocketAddressWrapper inetSocketAddressWrapper, int tries, long reconnectInterval)
           
 
Method Summary
 int compareTo(java.util.concurrent.Delayed o)
           
 long getDelay(java.util.concurrent.TimeUnit unit)
           
 InetSocketAddressWrapper getInetSocketAddressWrapper()
           
 int getTries()
           
 void setInetSocketAddressWrapper(InetSocketAddressWrapper inetSocketAddressWrapper)
           
 void setTries(int tries)
           
 void updateNextReconnectTimeStamp(long interval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconnectRequest

public ReconnectRequest(InetSocketAddressWrapper inetSocketAddressWrapper,
                        int tries,
                        long reconnectInterval)
Method Detail

getDelay

public long getDelay(java.util.concurrent.TimeUnit unit)
Specified by:
getDelay in interface java.util.concurrent.Delayed

compareTo

public int compareTo(java.util.concurrent.Delayed o)
Specified by:
compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>

getInetSocketAddressWrapper

public final InetSocketAddressWrapper getInetSocketAddressWrapper()

updateNextReconnectTimeStamp

public void updateNextReconnectTimeStamp(long interval)

setInetSocketAddressWrapper

public final void setInetSocketAddressWrapper(InetSocketAddressWrapper inetSocketAddressWrapper)

setTries

public final void setTries(int tries)

getTries

public final int getTries()


Copyright © 2011. All Rights Reserved.