public class OutboundConnections
extends java.lang.Object
OutboundConnection
for each of the
ConnectionType
types.Modifier and Type | Field and Description |
---|---|
OutboundConnection |
large |
static int |
LARGE_MESSAGE_THRESHOLD |
OutboundConnection |
small |
OutboundConnection |
urgent |
Modifier and Type | Method and Description |
---|---|
void |
enqueue(Message msg,
ConnectionType type)
Select the appropriate connection for the provided message and use it to send the message.
|
long |
usingReserveBytes() |
public static final int LARGE_MESSAGE_THRESHOLD
public final OutboundConnection small
public final OutboundConnection large
public final OutboundConnection urgent
public void enqueue(Message msg, ConnectionType type) throws java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
public long usingReserveBytes()
Copyright © 2009-2021 The Apache Software Foundation