public class UtilsTracker extends Object
| Constructor and Description |
|---|
UtilsTracker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addReleaseListener(ChannelCreator channelCreator,
FutureTracker futureTracker)
Adds a listener to the response future and releases all aquired channels in channel creator.
|
static TrackerData |
disjunction(TrackerData meshPeers,
SimpleBloomFilter<Number160> knownPeers) |
static TrackerData |
limit(TrackerData peers,
int size) |
public static TrackerData limit(TrackerData peers, int size)
public static TrackerData disjunction(TrackerData meshPeers, SimpleBloomFilter<Number160> knownPeers)
public static void addReleaseListener(ChannelCreator channelCreator, FutureTracker futureTracker)
channelCreator - The channel creator that will be shutdown and all connections will be closedbaseFutures - The futures to listen to. If all the futures finished, then the channel creator is shutdown. If null
provided, the channel creator is shutdown immediately.Copyright © 2014. All rights reserved.