public class ViewFuture extends HttpFuture<ViewResponse>
Constructor and Description |
---|
ViewFuture(java.util.concurrent.CountDownLatch latch,
long timeout,
AbstractView view,
java.util.concurrent.ExecutorService service) |
Modifier and Type | Method and Description |
---|---|
ViewFuture |
addListener(HttpCompletionListener listener) |
ViewResponse |
get(long duration,
java.util.concurrent.TimeUnit units) |
ViewFuture |
removeListener(HttpCompletionListener listener) |
void |
set(ViewResponse viewResponse,
net.spy.memcached.internal.BulkFuture<java.util.Map<java.lang.String,java.lang.Object>> oper,
net.spy.memcached.ops.OperationStatus s) |
cancel, get, getStatus, isCancelled, isDone, set, setOperation, signalComplete, waitForAndCheckOperation
public ViewFuture(java.util.concurrent.CountDownLatch latch, long timeout, AbstractView view, java.util.concurrent.ExecutorService service)
public ViewResponse get(long duration, java.util.concurrent.TimeUnit units) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
get
in interface java.util.concurrent.Future<ViewResponse>
get
in class HttpFuture<ViewResponse>
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public void set(ViewResponse viewResponse, net.spy.memcached.internal.BulkFuture<java.util.Map<java.lang.String,java.lang.Object>> oper, net.spy.memcached.ops.OperationStatus s)
public ViewFuture addListener(HttpCompletionListener listener)
addListener
in interface net.spy.memcached.internal.ListenableFuture<ViewResponse,HttpCompletionListener>
addListener
in class HttpFuture<ViewResponse>
public ViewFuture removeListener(HttpCompletionListener listener)
removeListener
in interface net.spy.memcached.internal.ListenableFuture<ViewResponse,HttpCompletionListener>
removeListener
in class HttpFuture<ViewResponse>
Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.