public class PacketSendBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BULK_SEND_DATA |
static int |
RETRANS_PACKET_PAUSE_THRESHOLD |
static boolean |
RETRANSDEBUG |
| Constructor and Description |
|---|
PacketSendBuffer(int datagramSizeBytes,
String clusterName,
String nodeId,
TopicEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRetransmissionRequest(RetransPacket retransPacket,
Transport trans) |
void |
doFlowControl() |
void |
free() |
int |
getMaxSendPacketsQueued() |
Object |
getSendWakeupLock() |
TopicStats |
getStats() |
TopicEntry |
getTopicEntry() |
boolean |
isOptForLatency() |
boolean |
isUnordered() |
boolean |
putMessage(int tag,
de.ruedigermoeller.heapoff.bytez.Bytez b,
int offset,
int len,
boolean tryPut) |
boolean |
putMessageMT(int tag,
de.ruedigermoeller.heapoff.bytez.Bytez b,
int offset,
int len,
boolean tryPut) |
boolean |
putMessageST(int tag,
de.ruedigermoeller.heapoff.bytez.Bytez b,
int offset,
int len,
boolean tryPut) |
boolean |
send(Transport transport)
send pending packets to transport.
|
void |
setMaxSendPacketsQueued(int maxSendPacketsQueued) |
void |
setOptForLatency(boolean optForLatency) |
void |
setUnordered(boolean unordered) |
boolean |
useSpinLock() |
public static final int MAX_BULK_SEND_DATA
public static final boolean RETRANSDEBUG
public static final int RETRANS_PACKET_PAUSE_THRESHOLD
public PacketSendBuffer(int datagramSizeBytes,
String clusterName,
String nodeId,
TopicEntry entry)
public void free()
public TopicEntry getTopicEntry()
public TopicStats getStats()
public boolean isUnordered()
public void setUnordered(boolean unordered)
public int getMaxSendPacketsQueued()
public void setMaxSendPacketsQueued(int maxSendPacketsQueued)
public boolean putMessage(int tag,
de.ruedigermoeller.heapoff.bytez.Bytez b,
int offset,
int len,
boolean tryPut)
public boolean putMessageST(int tag,
de.ruedigermoeller.heapoff.bytez.Bytez b,
int offset,
int len,
boolean tryPut)
public boolean putMessageMT(int tag,
de.ruedigermoeller.heapoff.bytez.Bytez b,
int offset,
int len,
boolean tryPut)
public boolean isOptForLatency()
public boolean useSpinLock()
public void setOptForLatency(boolean optForLatency)
public boolean send(Transport transport) throws IOException
transport - IOExceptionpublic void addRetransmissionRequest(RetransPacket retransPacket, Transport trans) throws IOException
IOExceptionpublic Object getSendWakeupLock()
public void doFlowControl()
Copyright © 2014. All rights reserved.