Package org.apache.cassandra.net
Class OutboundConnectionSettings
- java.lang.Object
-
- org.apache.cassandra.net.OutboundConnectionSettings
-
public class OutboundConnectionSettings extends java.lang.Object
A collection of settings to be passed around for outbound connections.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OutboundConnectionSettings.Framing
-
Field Summary
Fields Modifier and Type Field Description org.apache.cassandra.net.AcceptVersions
acceptVersions
java.lang.Integer
applicationSendQueueCapacityInBytes
java.lang.Integer
applicationSendQueueReserveEndpointCapacityInBytes
ResourceLimits.Limit
applicationSendQueueReserveGlobalCapacityInBytes
IInternodeAuthenticator
authenticator
org.apache.cassandra.net.OutboundMessageCallbacks
callbacks
InetAddressAndPort
connectTo
org.apache.cassandra.net.OutboundDebugCallbacks
debug
EncryptionOptions.ServerEncryptionOptions
encryption
EndpointMessagingVersions
endpointToVersion
int
flushHighWaterMark
int
flushLowWaterMark
OutboundConnectionSettings.Framing
framing
InetAddressAndPort
from
SocketFactory
socketFactory
java.lang.Integer
socketSendBufferSizeInBytes
java.lang.Integer
tcpConnectTimeoutInMS
java.lang.Boolean
tcpNoDelay
java.lang.Integer
tcpUserTimeoutInMS
InetAddressAndPort
to
-
Constructor Summary
Constructors Constructor Description OutboundConnectionSettings(InetAddressAndPort to)
OutboundConnectionSettings(InetAddressAndPort to, InetAddressAndPort preferred)
-
Method Summary
-
-
-
Field Detail
-
authenticator
public final IInternodeAuthenticator authenticator
-
to
public final InetAddressAndPort to
-
connectTo
public final InetAddressAndPort connectTo
-
encryption
public final EncryptionOptions.ServerEncryptionOptions encryption
-
framing
public final OutboundConnectionSettings.Framing framing
-
socketSendBufferSizeInBytes
public final java.lang.Integer socketSendBufferSizeInBytes
-
applicationSendQueueCapacityInBytes
public final java.lang.Integer applicationSendQueueCapacityInBytes
-
applicationSendQueueReserveEndpointCapacityInBytes
public final java.lang.Integer applicationSendQueueReserveEndpointCapacityInBytes
-
applicationSendQueueReserveGlobalCapacityInBytes
public final ResourceLimits.Limit applicationSendQueueReserveGlobalCapacityInBytes
-
tcpNoDelay
public final java.lang.Boolean tcpNoDelay
-
flushLowWaterMark
public final int flushLowWaterMark
-
flushHighWaterMark
public final int flushHighWaterMark
-
tcpConnectTimeoutInMS
public final java.lang.Integer tcpConnectTimeoutInMS
-
tcpUserTimeoutInMS
public final java.lang.Integer tcpUserTimeoutInMS
-
acceptVersions
public final org.apache.cassandra.net.AcceptVersions acceptVersions
-
from
public final InetAddressAndPort from
-
socketFactory
public final SocketFactory socketFactory
-
callbacks
public final org.apache.cassandra.net.OutboundMessageCallbacks callbacks
-
debug
public final org.apache.cassandra.net.OutboundDebugCallbacks debug
-
endpointToVersion
public final EndpointMessagingVersions endpointToVersion
-
-
Constructor Detail
-
OutboundConnectionSettings
public OutboundConnectionSettings(InetAddressAndPort to)
-
OutboundConnectionSettings
public OutboundConnectionSettings(InetAddressAndPort to, InetAddressAndPort preferred)
-
-
Method Detail
-
withEncryption
public boolean withEncryption()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
withAuthenticator
public OutboundConnectionSettings withAuthenticator(IInternodeAuthenticator authenticator)
-
toEndpoint
public OutboundConnectionSettings toEndpoint(InetAddressAndPort endpoint)
-
withConnectTo
public OutboundConnectionSettings withConnectTo(InetAddressAndPort connectTo)
-
withEncryption
public OutboundConnectionSettings withEncryption(EncryptionOptions.ServerEncryptionOptions encryption)
-
withFraming
public OutboundConnectionSettings withFraming(OutboundConnectionSettings.Framing framing)
-
withSocketSendBufferSizeInBytes
public OutboundConnectionSettings withSocketSendBufferSizeInBytes(int socketSendBufferSizeInBytes)
-
withApplicationSendQueueCapacityInBytes
public OutboundConnectionSettings withApplicationSendQueueCapacityInBytes(int applicationSendQueueCapacityInBytes)
-
withApplicationReserveSendQueueCapacityInBytes
public OutboundConnectionSettings withApplicationReserveSendQueueCapacityInBytes(java.lang.Integer applicationReserveSendQueueEndpointCapacityInBytes, ResourceLimits.Limit applicationReserveSendQueueGlobalCapacityInBytes)
-
withTcpNoDelay
public OutboundConnectionSettings withTcpNoDelay(boolean tcpNoDelay)
-
withNettyBufferBounds
public OutboundConnectionSettings withNettyBufferBounds(io.netty.channel.WriteBufferWaterMark nettyBufferBounds)
-
withTcpConnectTimeoutInMS
public OutboundConnectionSettings withTcpConnectTimeoutInMS(int tcpConnectTimeoutInMS)
-
withTcpUserTimeoutInMS
public OutboundConnectionSettings withTcpUserTimeoutInMS(int tcpUserTimeoutInMS)
-
withAcceptVersions
public OutboundConnectionSettings withAcceptVersions(org.apache.cassandra.net.AcceptVersions acceptVersions)
-
withFrom
public OutboundConnectionSettings withFrom(InetAddressAndPort from)
-
withSocketFactory
public OutboundConnectionSettings withSocketFactory(SocketFactory socketFactory)
-
withCallbacks
public OutboundConnectionSettings withCallbacks(org.apache.cassandra.net.OutboundMessageCallbacks callbacks)
-
withDebugCallbacks
public OutboundConnectionSettings withDebugCallbacks(org.apache.cassandra.net.OutboundDebugCallbacks debug)
-
withDefaultReserveLimits
public OutboundConnectionSettings withDefaultReserveLimits()
-
authenticator
public IInternodeAuthenticator authenticator()
-
endpointToVersion
public EndpointMessagingVersions endpointToVersion()
-
from
public InetAddressAndPort from()
-
debug
public org.apache.cassandra.net.OutboundDebugCallbacks debug()
-
encryption
public EncryptionOptions.ServerEncryptionOptions encryption()
-
socketFactory
public SocketFactory socketFactory()
-
callbacks
public org.apache.cassandra.net.OutboundMessageCallbacks callbacks()
-
socketSendBufferSizeInBytes
public int socketSendBufferSizeInBytes()
-
applicationSendQueueCapacityInBytes
public int applicationSendQueueCapacityInBytes()
-
applicationSendQueueReserveGlobalCapacityInBytes
public ResourceLimits.Limit applicationSendQueueReserveGlobalCapacityInBytes()
-
applicationSendQueueReserveEndpointCapacityInBytes
public int applicationSendQueueReserveEndpointCapacityInBytes()
-
tcpConnectTimeoutInMS
public int tcpConnectTimeoutInMS()
-
tcpUserTimeoutInMS
public int tcpUserTimeoutInMS(ConnectionCategory category)
-
tcpNoDelay
public boolean tcpNoDelay()
-
acceptVersions
public org.apache.cassandra.net.AcceptVersions acceptVersions(ConnectionCategory category)
-
connectTo
public InetAddressAndPort connectTo()
-
connectToId
public java.lang.String connectToId()
-
framing
public OutboundConnectionSettings.Framing framing(ConnectionCategory category)
-
withDefaults
public OutboundConnectionSettings withDefaults(ConnectionCategory category)
-
-