public class SendDirectBuilder extends Object implements ConnectionConfiguration, SendDirectBuilderI, SignatureBuilder<SendDirectBuilder>
| Constructor and Description |
|---|
SendDirectBuilder(Peer peer,
FuturePeerConnection recipientConnection) |
SendDirectBuilder(Peer peer,
PeerAddress recipientAddress) |
SendDirectBuilder(Peer peer,
PeerConnection peerConnection) |
public SendDirectBuilder(Peer peer, PeerAddress recipientAddress)
public SendDirectBuilder(Peer peer, FuturePeerConnection recipientConnection)
public SendDirectBuilder(Peer peer, PeerConnection peerConnection)
public PeerAddress recipient()
public Buffer buffer()
buffer in interface SendDirectBuilderIpublic SendDirectBuilder buffer(Buffer buffer)
public FuturePeerConnection connection()
public SendDirectBuilder connection(FuturePeerConnection connection)
public PeerConnection peerConnection()
public SendDirectBuilder peerConnection(PeerConnection peerConnection)
public Object object()
object in interface SendDirectBuilderIpublic SendDirectBuilder object(Object object)
public FutureChannelCreator futureChannelCreator()
public SendDirectBuilder futureChannelCreator(FutureChannelCreator futureChannelCreator)
public SendDirectBuilder streaming(boolean streaming)
public boolean isStreaming()
isStreaming in interface SendDirectBuilderIpublic SendDirectBuilder streaming()
public boolean isRaw()
isRaw in interface SendDirectBuilderIpublic FutureDirect start()
public boolean isForceUDP()
isForceUDP in interface ConnectionConfigurationpublic SendDirectBuilder forceUDP(boolean forceUDP)
public SendDirectBuilder forceUDP()
public int idleTCPSeconds()
idleTCPSeconds in interface ConnectionConfigurationpublic SendDirectBuilder idleTCPSeconds(int idleTCPSeconds)
idleTCPSeconds - The time that a connection can be idle before its considered
not active for short-lived connectionspublic int idleUDPSeconds()
idleUDPSeconds in interface ConnectionConfigurationpublic SendDirectBuilder idleUDPSeconds(int idleUDPSeconds)
idleUDPSeconds - The time that a connection can be idle before its considered
not active for short-lived connectionspublic SendDirectBuilder connectionTimeoutTCPMillis(int connectionTimeoutTCPMillis)
connectionTimeoutTCPMillis - The time a TCP connection is allowed to be establishedpublic int connectionTimeoutTCPMillis()
connectionTimeoutTCPMillis in interface ConnectionConfigurationpublic boolean isForceTCP()
isForceTCP in interface ConnectionConfigurationpublic SendDirectBuilder forceTCP(boolean forceTCP)
forceTCP - Set to true if the communication should be TCP, default is UDP
for routingpublic SendDirectBuilder forceTCP()
public int slowResponseTimeoutSeconds()
slowResponseTimeoutSeconds in interface ConnectionConfigurationpublic SendDirectBuilder slowResponseTimeoutSeconds(int slowResponseTimeoutSeconds)
slowResponseTimeoutSeconds - the amount of seconds a requester waits for the final answer of a
slow peer. If the slow peer does not answer within this time, the request fails.public SendDirectBuilder progressListener(ProgressListener progressListener)
public ProgressListener progressListener()
progressListener in interface SendDirectBuilderIpublic boolean isSign()
isSign in interface SignatureBuilder<SendDirectBuilder>isSign in interface SendDirectBuilderIpublic SendDirectBuilder sign(boolean signMessage)
sign in interface SignatureBuilder<SendDirectBuilder>signMessage - Set to true if the message should be signed. For protecting an
entry, this needs to be set to true.public SendDirectBuilder sign()
sign in interface SignatureBuilder<SendDirectBuilder>public SendDirectBuilder keyPair(KeyPair keyPair)
keyPair in interface SignatureBuilder<SendDirectBuilder>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<SendDirectBuilder>keyPair in interface SendDirectBuilderICopyright © 2014. All rights reserved.