net.spy.memcached.internal
Class ViewFuture

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

public class ViewFuture
extends SpyObject
implements Future<ViewResponseWithDocs>


Constructor Summary
ViewFuture(CountDownLatch latch, long timeout)
           
 
Method Summary
 boolean cancel(boolean c)
           
 ViewResponseWithDocs get()
           
 ViewResponseWithDocs get(long duration, TimeUnit units)
           
 OperationStatus getStatus()
           
 boolean isCancelled()
           
 boolean isDone()
           
 void set(ViewResponseWithDocs viewResponse, BulkFuture<Map<String,Object>> 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

ViewFuture

public ViewFuture(CountDownLatch latch,
                  long timeout)
Method Detail

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)