net.spy.memcached.internal
Class HttpFuture<T>
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.internal.HttpFuture<T>
- All Implemented Interfaces:
- Future<T>
public class HttpFuture<T>
- extends SpyObject
- implements Future<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpFuture
public HttpFuture(CountDownLatch latch,
long timeout)
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>