public class FutureAsyncTask extends BaseFutureImpl<FutureAsyncTask>
BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureAsyncTask(PeerAddress remotePeer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Map<Number160,Data> |
getDataMap() |
PeerAddress |
getRemotePeer() |
void |
setDataMap(Map<Number160,Data> dataMap)
Finishes the future and notifies listeners.
|
addCancel, addListener, addListener, await, await, awaitListeners, awaitListenersUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getFailedReason, getType, isCompleted, isFailed, isSuccess, notifyListeners, removeCancel, removeListener, self, setCompletedAndNotify, setFailed, setFailed, setFailed, setFailed, setFailedpublic FutureAsyncTask(PeerAddress remotePeer)
remotePeer - The address of the peer that processes the taskpublic void setDataMap(Map<Number160,Data> dataMap)
dataMap - The result from the remote peerpublic Map<Number160,Data> getDataMap()
public PeerAddress getRemotePeer()
Copyright © 2014. All rights reserved.