Package org.apache.cassandra.net
Class OutboundConnections
java.lang.Object
org.apache.cassandra.net.OutboundConnections
Groups a set of outbound connections to a given peer, and routes outgoing messages to the appropriate connection
(based upon message's type or size). Contains a
OutboundConnection for each of the
ConnectionType types.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal OutboundConnectionstatic final intfinal OutboundConnectionfinal OutboundConnection -
Method Summary
Modifier and TypeMethodDescriptionvoidenqueue(Message msg, ConnectionType type) Select the appropriate connection for the provided message and use it to send the message.long
-
Field Details
-
LARGE_MESSAGE_THRESHOLD
public static final int LARGE_MESSAGE_THRESHOLD -
small
-
large
-
urgent
-
-
Method Details
-
enqueue
Select the appropriate connection for the provided message and use it to send the message.- Throws:
ClosedChannelException
-
usingReserveBytes
public long usingReserveBytes()
-