net.spy.memcached.internal
Class HttpFuture<T>

java.lang.Object
  extended by net.spy.memcached.compat.SpyObject
      extended by net.spy.memcached.internal.HttpFuture<T>
All Implemented Interfaces:
Future<T>

public class HttpFuture<T>
extends SpyObject
implements Future<T>


Constructor Summary
HttpFuture(CountDownLatch latch, long timeout)
           
 
Method Summary
 boolean cancel(boolean c)
           
 T get()
           
 T get(long duration, TimeUnit units)
           
 OperationStatus getStatus()
           
 boolean isCancelled()
           
 boolean isDone()
           
 void set(T op, OperationStatus s)
           
 void setOperation(HttpOperation to)
           
 
Methods inherited from class net.spy.memcached.compat.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpFuture

public HttpFuture(CountDownLatch latch,
                  long timeout)
Method Detail

cancel

public boolean cancel(boolean c)
Specified by:
cancel in interface Future<T>

get

public T get()
      throws InterruptedException,
             ExecutionException
Specified by:
get in interface Future<T>
Throws:
InterruptedException
ExecutionException

get

public T get(long duration,
             TimeUnit units)
      throws InterruptedException,
             ExecutionException,
             TimeoutException
Specified by:
get in interface Future<T>
Throws:
InterruptedException
ExecutionException
TimeoutException

getStatus

public OperationStatus getStatus()

set

public void set(T op,
                OperationStatus s)

isDone

public boolean isDone()
Specified by:
isDone in interface Future<T>

setOperation

public void setOperation(HttpOperation to)

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<T>