public class ShutdownBuilder extends DefaultConnectionConfiguration implements SignatureBuilder<ShutdownBuilder>
| Constructor and Description |
|---|
ShutdownBuilder(Peer peer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ShutdownBuilder |
forceRoutingOnlyToSelf() |
ShutdownBuilder |
forceRoutingOnlyToSelf(boolean forceRoutingOnlyToSelf) |
boolean |
isForceRoutingOnlyToSelf() |
boolean |
isSign() |
KeyPair |
keyPair() |
ShutdownBuilder |
keyPair(KeyPair keyPair) |
RoutingConfiguration |
routingConfiguration() |
ShutdownBuilder |
routingConfiguration(RoutingConfiguration routingConfiguration) |
ShutdownBuilder |
sign() |
ShutdownBuilder |
sign(boolean signMessage) |
FutureDone<Void> |
start()
Start the shutdown.
|
connectionTimeoutTCPMillis, connectionTimeoutTCPMillis, forceTCP, forceTCP, forceUDP, forceUDP, idleTCPSeconds, idleTCPSeconds, idleUDPSeconds, idleUDPSeconds, isForceTCP, isForceUDP, slowResponseTimeoutSeconds, slowResponseTimeoutSecondspublic ShutdownBuilder(Peer peer)
peer - The peer that runs the routing and quit messagespublic FutureDone<Void> start()
public boolean isSign()
isSign in interface SignatureBuilder<ShutdownBuilder>public ShutdownBuilder sign(boolean signMessage)
sign in interface SignatureBuilder<ShutdownBuilder>signMessage - Set to true if the message should be signed. For protecting an
entry, this needs to be set to true.public ShutdownBuilder sign()
sign in interface SignatureBuilder<ShutdownBuilder>public ShutdownBuilder keyPair(KeyPair keyPair)
keyPair in interface SignatureBuilder<ShutdownBuilder>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<ShutdownBuilder>public RoutingConfiguration routingConfiguration()
public ShutdownBuilder routingConfiguration(RoutingConfiguration routingConfiguration)
public boolean isForceRoutingOnlyToSelf()
public ShutdownBuilder forceRoutingOnlyToSelf()
public ShutdownBuilder forceRoutingOnlyToSelf(boolean forceRoutingOnlyToSelf)
Copyright © 2014. All rights reserved.