public abstract class TrackerBuilder<K extends TrackerBuilder<K>> extends DefaultConnectionConfiguration implements SignatureBuilder<K>, Builder
| Modifier and Type | Field and Description |
|---|---|
static Number160 |
DEFAULT_DOMAIN |
protected Number160 |
domainKey |
protected static FutureTracker |
FUTURE_TRACKER_SHUTDOWN |
protected FutureChannelCreator |
futureChannelCreator |
protected Number160 |
locationKey |
protected PeerTracker |
peer |
protected RoutingConfiguration |
routingConfiguration |
protected TrackerConfiguration |
trackerConfiguration |
| Constructor and Description |
|---|
TrackerBuilder(PeerTracker peer,
Number160 locationKey) |
| Modifier and Type | Method and Description |
|---|---|
K |
addPeerFilter(PeerFilter peerFilter) |
RoutingBuilder |
createBuilder(RoutingConfiguration routingConfiguration2) |
Number160 |
domainKey() |
K |
domainKey(Number160 domainKey) |
FutureChannelCreator |
futureChannelCreator() |
K |
futureChannelCreator(FutureChannelCreator futureChannelCreator) |
boolean |
isSign() |
KeyPair |
keyPair() |
K |
keyPair(KeyPair keyPair) |
Set<Number160> |
knownPeers() |
K |
knownPeers(Set<Number160> knownPeers) |
Number160 |
locationKey() |
Collection<PeerFilter> |
peerFilters() |
void |
preBuild(String name) |
RoutingConfiguration |
routingConfiguration() |
K |
routingConfiguration(RoutingConfiguration routingConfiguration) |
void |
self(K self) |
K |
sign() |
K |
sign(boolean signMessage) |
abstract FutureTracker |
start() |
TrackerConfiguration |
trackerConfiguration() |
K |
trackerConfiguration(TrackerConfiguration trackerConfiguration) |
connectionTimeoutTCPMillis, connectionTimeoutTCPMillis, forceTCP, forceTCP, forceUDP, forceUDP, idleTCPSeconds, idleTCPSeconds, idleUDPSeconds, idleUDPSeconds, isForceTCP, isForceUDPpublic static final Number160 DEFAULT_DOMAIN
protected static final FutureTracker FUTURE_TRACKER_SHUTDOWN
protected final PeerTracker peer
protected final Number160 locationKey
protected Number160 domainKey
protected RoutingConfiguration routingConfiguration
protected TrackerConfiguration trackerConfiguration
protected FutureChannelCreator futureChannelCreator
public TrackerBuilder(PeerTracker peer, Number160 locationKey)
public void self(K self)
public Number160 domainKey()
public Number160 locationKey()
public RoutingConfiguration routingConfiguration()
public K routingConfiguration(RoutingConfiguration routingConfiguration)
public TrackerConfiguration trackerConfiguration()
public K trackerConfiguration(TrackerConfiguration trackerConfiguration)
public FutureChannelCreator futureChannelCreator()
public K futureChannelCreator(FutureChannelCreator futureChannelCreator)
public void preBuild(String name)
public abstract FutureTracker start()
public RoutingBuilder createBuilder(RoutingConfiguration routingConfiguration2)
public boolean isSign()
isSign in interface SignatureBuilder<K extends TrackerBuilder<K>>public K sign(boolean signMessage)
sign in interface SignatureBuilder<K extends TrackerBuilder<K>>signMessage - Set to true if the message should be signed. For protecting an entry, this needs to be set to true.public K sign()
sign in interface SignatureBuilder<K extends TrackerBuilder<K>>public K keyPair(KeyPair keyPair)
keyPair in interface SignatureBuilder<K extends TrackerBuilder<K>>keyPair - The keyPair to sing the complete message. The key will be attached to the message and stored
potentially with a data object (if there is such an object in the message).public KeyPair keyPair()
keyPair in interface SignatureBuilder<K extends TrackerBuilder<K>>public K addPeerFilter(PeerFilter peerFilter)
public Collection<PeerFilter> peerFilters()
Copyright © 2014. All rights reserved.