public class FutureRouting extends BaseFutureImpl<FutureRouting>
#neighbors(SortedSet, SortedSet, SortedSet, boolean, boolean)BaseFuture.FutureTypecompleted, lock, reason, type| Constructor and Description |
|---|
FutureRouting() |
| Modifier and Type | Method and Description |
|---|---|
NavigableSet<PeerAddress> |
directHits()
The direct hits set contains those peers that reported to have the key
(Number160) we were looking for.
|
SortedMap<PeerAddress,DigestInfo> |
directHitsDigest()
The direct hits map contains those peers that reported to have the key
(Number160) we were looking for including its digest (size of the result
set and its xored hashes).
|
String |
failedReason()
The default failed reason is Unknown.
|
void |
neighbors(SortedMap<PeerAddress,DigestInfo> directHits,
NavigableSet<PeerAddress> potentialHits,
SortedSet<PeerAddress> routingPath,
boolean isBootstrap,
boolean isRoutingToOther)
Sets the result of the routing process and finishes the future.
|
NavigableSet<PeerAddress> |
potentialHits()
The potential hits set contains those peers that are in the direct hit
and that did report to *not* have the key (Number160) we were looking
for.
|
SortedSet<PeerAddress> |
routingPath()
Returns the peers that have been asked to provide neighbor information.
|
addCancel, addListener, addListener, await, await, awaitListeners, awaitListenersUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, completedAndNotify, failed, failed, failed, failed, failed, isCompleted, isFailed, isSuccess, notifyListeners, removeCancel, removeListener, self, self, typepublic void neighbors(SortedMap<PeerAddress,DigestInfo> directHits, NavigableSet<PeerAddress> potentialHits, SortedSet<PeerAddress> routingPath, boolean isBootstrap, boolean isRoutingToOther)
directHits - The direct hits, the peers in the direct set that reports to
have the key (Number160) we were looking for.potentialHits - The potential hits, the peers in the direct set and those
peers that reports to *not* have the key (Number160) we were
looking for.routingPath - A set of peers that took part in the routing process.isBootstrap - Whether the future was triggered by the bootstrap process or
the a P2P processisRoutingToOther - Whether routing peers have been specified others than myself.directHits(),
directHitsDigest(),
potentialHits(),
routingPath()public NavigableSet<PeerAddress> potentialHits()
directHits(),
directHitsDigest()public NavigableSet<PeerAddress> directHits()
potentialHits(),
directHitsDigest()public SortedMap<PeerAddress,DigestInfo> directHitsDigest()
potentialHits(),
directHits()public SortedSet<PeerAddress> routingPath()
public String failedReason()
BaseFuturefailedReason in interface BaseFuturefailedReason in class BaseFutureImpl<FutureRouting>Copyright © 2014. All rights reserved.