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 getRecipient()
public Buffer getBuffer()
getBuffer in interface SendDirectBuilderIpublic SendDirectBuilder setBuffer(Buffer buffer)
public FuturePeerConnection getConnection()
public SendDirectBuilder setConnection(FuturePeerConnection connection)
public PeerConnection peerConnection()
public SendDirectBuilder peerConnection(PeerConnection peerConnection)
public Object getObject()
getObject in interface SendDirectBuilderIpublic SendDirectBuilder setObject(Object object)
public FutureChannelCreator getFutureChannelCreator()
public SendDirectBuilder setFutureChannelCreator(FutureChannelCreator futureChannelCreator)
public SendDirectBuilder streaming(boolean streaming)
public boolean streaming()
streaming in interface SendDirectBuilderIpublic SendDirectBuilder setStreaming()
public boolean isRaw()
isRaw in interface SendDirectBuilderIpublic FutureDirect start()
public boolean isForceUDP()
isForceUDP in interface ConnectionConfigurationpublic SendDirectBuilder setForceUDP(boolean forceUDP)
public SendDirectBuilder setForceUDP()
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 setForceTCP(boolean forceTCP)
forceTCP - Set to true if the communication should be TCP, default is UDP
for routingpublic SendDirectBuilder setForceTCP()
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 setSign()
setSign 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.