public class FutureAsyncTask extends BaseFutureImpl<FutureAsyncTask>
BaseFuture.FutureType
completed, 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.
|
addCancellation, addListener, addListener, await, await, awaitListeners, awaitUninterruptibly, awaitUninterruptibly, cancel, getFailedReason, getType, isCompleted, isFailed, isSuccess, notifyListerenrs, removeListener, self, setCompletedAndNotify, setFailed, setFailed, setFailed, setFailed, setFailed
public 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 © 2013. All Rights Reserved.