public class ObserveFuture<T> extends OperationFuture<T>
status
Constructor and Description |
---|
ObserveFuture(java.lang.String k,
java.util.concurrent.CountDownLatch l,
long opTimeout,
java.util.concurrent.ExecutorService service) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Cancel this operation, if possible.
|
boolean |
cancel(boolean ign)
Cancel this operation, if possible.
|
boolean |
isCancelled()
Whether or not the Operation associated with this OperationFuture has been
canceled.
|
boolean |
isDone()
Whether or not the Operation is done and result can be retrieved with
get().
|
addListener, get, get, getCas, getKey, getStatus, removeListener, set, setCas, setOperation
addToListeners, executor, notifyListener, notifyListeners, notifyListeners, removeFromListeners
public ObserveFuture(java.lang.String k, java.util.concurrent.CountDownLatch l, long opTimeout, java.util.concurrent.ExecutorService service)
public boolean cancel()
OperationFuture
cancel
in class OperationFuture<T>
public boolean cancel(boolean ign)
OperationFuture
cancel
in interface java.util.concurrent.Future<T>
cancel
in class OperationFuture<T>
ign
- not usedpublic boolean isCancelled()
OperationFuture
isCancelled
in interface java.util.concurrent.Future<T>
isCancelled
in class OperationFuture<T>
public boolean isDone()
OperationFuture
isDone
in interface java.util.concurrent.Future<T>
isDone
in class OperationFuture<T>
Copyright © 2006-2009 Dustin Sallings, 2009-2014 Couchbase, Inc.