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, wait
await, await, cancel, cause, get, get, getNow, getQueryInfo, isCancelled, isDone, isSuccess
public void addListener(RiakFutureListener<T,S> listener)
RiakFuture
addListener
in interface RiakFuture<T,S>
listener
- a FiakFutureListener that will be notified when this RiakFuture completes.public void removeListener(RiakFutureListener<T,S> listener)
RiakFuture
removeListener
in interface RiakFuture<T,S>
listener
- The listener to remove.protected void notifyListeners()
Copyright © 2016. All rights reserved.