Package org.apache.cassandra.net
Class OutboundConnectionSettings
java.lang.Object
org.apache.cassandra.net.OutboundConnectionSettings
A collection of settings to be passed around for outbound connections.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.apache.cassandra.net.AcceptVersionsfinal Integerfinal Integerfinal ResourceLimits.Limitfinal IInternodeAuthenticatorfinal org.apache.cassandra.net.OutboundMessageCallbacksfinal InetAddressAndPortfinal org.apache.cassandra.net.OutboundDebugCallbacksfinal intfinal intfinal InetAddressAndPortfinal SocketFactoryfinal Integerfinal Integerfinal Booleanfinal Integerfinal InetAddressAndPort -
Constructor Summary
ConstructorsConstructorDescriptionOutboundConnectionSettings(InetAddressAndPort to, InetAddressAndPort preferred) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.cassandra.net.AcceptVersionsacceptVersions(ConnectionCategory category) intintorg.apache.cassandra.net.OutboundMessageCallbacksorg.apache.cassandra.net.OutboundDebugCallbacksdebug()framing(ConnectionCategory category) from()intintbooleaninttcpUserTimeoutInMS(ConnectionCategory category) toEndpoint(InetAddressAndPort endpoint) toString()withAcceptVersions(org.apache.cassandra.net.AcceptVersions acceptVersions) withApplicationReserveSendQueueCapacityInBytes(Integer applicationReserveSendQueueEndpointCapacityInBytes, ResourceLimits.Limit applicationReserveSendQueueGlobalCapacityInBytes) withApplicationSendQueueCapacityInBytes(int applicationSendQueueCapacityInBytes) withAuthenticator(IInternodeAuthenticator authenticator) withCallbacks(org.apache.cassandra.net.OutboundMessageCallbacks callbacks) withConnectTo(InetAddressAndPort connectTo) withDebugCallbacks(org.apache.cassandra.net.OutboundDebugCallbacks debug) withDefaults(ConnectionCategory category) booleanwithFrom(InetAddressAndPort from) withNettyBufferBounds(io.netty.channel.WriteBufferWaterMark nettyBufferBounds) withSocketFactory(SocketFactory socketFactory) withSocketSendBufferSizeInBytes(int socketSendBufferSizeInBytes) withTcpConnectTimeoutInMS(int tcpConnectTimeoutInMS) withTcpNoDelay(boolean tcpNoDelay) withTcpUserTimeoutInMS(int tcpUserTimeoutInMS)
-
Field Details
-
authenticator
-
to
-
connectTo
-
encryption
-
framing
-
socketSendBufferSizeInBytes
-
applicationSendQueueCapacityInBytes
-
applicationSendQueueReserveEndpointCapacityInBytes
-
applicationSendQueueReserveGlobalCapacityInBytes
-
tcpNoDelay
-
flushLowWaterMark
public final int flushLowWaterMark -
flushHighWaterMark
public final int flushHighWaterMark -
tcpConnectTimeoutInMS
-
tcpUserTimeoutInMS
-
acceptVersions
public final org.apache.cassandra.net.AcceptVersions acceptVersions -
from
-
socketFactory
-
callbacks
public final org.apache.cassandra.net.OutboundMessageCallbacks callbacks -
debug
public final org.apache.cassandra.net.OutboundDebugCallbacks debug -
endpointToVersion
-
-
Constructor Details
-
OutboundConnectionSettings
-
OutboundConnectionSettings
-
-
Method Details
-
withEncryption
public boolean withEncryption() -
toString
-
withAuthenticator
-
toEndpoint
-
withConnectTo
-
withEncryption
public OutboundConnectionSettings withEncryption(EncryptionOptions.ServerEncryptionOptions encryption) -
withFraming
-
withSocketSendBufferSizeInBytes
-
withApplicationSendQueueCapacityInBytes
public OutboundConnectionSettings withApplicationSendQueueCapacityInBytes(int applicationSendQueueCapacityInBytes) -
withApplicationReserveSendQueueCapacityInBytes
public OutboundConnectionSettings withApplicationReserveSendQueueCapacityInBytes(Integer applicationReserveSendQueueEndpointCapacityInBytes, ResourceLimits.Limit applicationReserveSendQueueGlobalCapacityInBytes) -
withTcpNoDelay
-
withNettyBufferBounds
public OutboundConnectionSettings withNettyBufferBounds(io.netty.channel.WriteBufferWaterMark nettyBufferBounds) -
withTcpConnectTimeoutInMS
-
withTcpUserTimeoutInMS
-
withAcceptVersions
public OutboundConnectionSettings withAcceptVersions(org.apache.cassandra.net.AcceptVersions acceptVersions) -
withFrom
-
withSocketFactory
-
withCallbacks
public OutboundConnectionSettings withCallbacks(org.apache.cassandra.net.OutboundMessageCallbacks callbacks) -
withDebugCallbacks
public OutboundConnectionSettings withDebugCallbacks(org.apache.cassandra.net.OutboundDebugCallbacks debug) -
withDefaultReserveLimits
-
authenticator
-
endpointToVersion
-
from
-
debug
public org.apache.cassandra.net.OutboundDebugCallbacks debug() -
encryption
-
socketFactory
-
callbacks
public org.apache.cassandra.net.OutboundMessageCallbacks callbacks() -
socketSendBufferSizeInBytes
public int socketSendBufferSizeInBytes() -
applicationSendQueueCapacityInBytes
public int applicationSendQueueCapacityInBytes() -
applicationSendQueueReserveGlobalCapacityInBytes
-
applicationSendQueueReserveEndpointCapacityInBytes
public int applicationSendQueueReserveEndpointCapacityInBytes() -
tcpConnectTimeoutInMS
public int tcpConnectTimeoutInMS() -
tcpUserTimeoutInMS
-
tcpNoDelay
public boolean tcpNoDelay() -
acceptVersions
-
connectTo
-
connectToId
-
framing
-
withDefaults
-