public class ShutdownBuilder extends DHTBuilder<ShutdownBuilder>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ShutdownBuilder.Filter
The filter can be used to add or remove peers to notify for a shutdown.
|
domainKey, futureChannelCreator, locationKey, peer, requestP2PConfiguration, routingConfiguration, versionKey| Constructor and Description |
|---|
ShutdownBuilder(Peer peer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ShutdownBuilder.Filter |
filter() |
NavigableSet<PeerAddress> |
filter(NavigableSet<PeerAddress> closePeers)
Adds the possibility to filter the peers, to add more or remove peers for the shutdown process.
|
ShutdownBuilder |
filter(ShutdownBuilder.Filter filter) |
ShutdownBuilder |
setDomainKey(Number160 domainKey) |
FutureShutdown |
start()
Start the shutdown.
|
createBuilder, getDomainKey, getFutureChannelCreator, getLocationKey, getRequestP2PConfiguration, getRoutingConfiguration, getVersionKey, isProtectDomain, isSign, isStreaming, keyPair, keyPair, preBuild, self, setFutureChannelCreator, setProtectDomain, setProtectDomain, setRequestP2PConfiguration, setRoutingConfiguration, setSign, setStreaming, setStreaming, setVersionKey, signconnectionTimeoutTCPMillis, connectionTimeoutTCPMillis, forceUDP, idleTCPSeconds, idleTCPSeconds, idleUDPSeconds, idleUDPSeconds, isForceTCP, isForceUDP, setForceTCP, setForceTCP, setForceUDPclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectionTimeoutTCPMillis, idleTCPSeconds, idleUDPSeconds, isForceTCP, isForceUDPpublic ShutdownBuilder(Peer peer)
peer - The peer that runs the routing and quit messagespublic ShutdownBuilder filter(ShutdownBuilder.Filter filter)
public ShutdownBuilder.Filter filter()
public FutureShutdown start()
public ShutdownBuilder setDomainKey(Number160 domainKey)
setDomainKey in interface BasicBuilder<ShutdownBuilder>setDomainKey in class DHTBuilder<ShutdownBuilder>public NavigableSet<PeerAddress> filter(NavigableSet<PeerAddress> closePeers)
closePeers - The close peers that were found in the peer map.Copyright © 2014. All rights reserved.