public abstract class ListenableFuture<T,S> extends Object implements RiakFuture<T,S>
| Constructor and Description |
|---|
ListenableFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(RiakFutureListener<T,S> listener)
Add a listener to this RiakFuture.
|
protected void |
notifyListeners() |
void |
removeListener(RiakFutureListener<T,S> listener)
Remove a listener from this RiakFuture.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawait, await, cancel, cause, get, get, getNow, getQueryInfo, isCancelled, isDone, isSuccesspublic void addListener(RiakFutureListener<T,S> listener)
RiakFutureaddListener in interface RiakFuture<T,S>listener - a FiakFutureListener that will be notified when this RiakFuture completes.public void removeListener(RiakFutureListener<T,S> listener)
RiakFutureremoveListener in interface RiakFuture<T,S>listener - The listener to remove.protected void notifyListeners()
Copyright © 2016. All rights reserved.