net.spy.memcached.internal
Class ViewFuture
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.internal.ViewFuture
- All Implemented Interfaces:
- Future<ViewResponseWithDocs>
public class ViewFuture
- extends SpyObject
- implements Future<ViewResponseWithDocs>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewFuture
public ViewFuture(CountDownLatch latch,
long timeout)
cancel
public boolean cancel(boolean c)
- Specified by:
cancel in interface Future<ViewResponseWithDocs>
get
public ViewResponseWithDocs get()
throws InterruptedException,
ExecutionException
- Specified by:
get in interface Future<ViewResponseWithDocs>
- Throws:
InterruptedException
ExecutionException
get
public ViewResponseWithDocs get(long duration,
TimeUnit units)
throws InterruptedException,
ExecutionException,
TimeoutException
- Specified by:
get in interface Future<ViewResponseWithDocs>
- Throws:
InterruptedException
ExecutionException
TimeoutException
getStatus
public OperationStatus getStatus()
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled in interface Future<ViewResponseWithDocs>
isDone
public boolean isDone()
- Specified by:
isDone in interface Future<ViewResponseWithDocs>
setOperation
public void setOperation(HttpOperation to)
set
public void set(ViewResponseWithDocs viewResponse,
BulkFuture<Map<String,Object>> op,
OperationStatus s)