public interface FCPublisher
| Modifier and Type | Method and Description |
|---|---|
FCPublisher |
batchOnLimit(boolean doBatch)
decides wether to start batching once rate limit is reached.
|
void |
flush() |
int |
getPacketRateLimit() |
int |
getTopicId() |
boolean |
isBatchOnLimit(boolean doBatch) |
boolean |
offer(String receiverNodeId,
byte[] b,
int start,
int len,
boolean doFlush)
send a byte[] message
|
boolean |
offer(String receiverNodeId,
org.nustaq.offheap.bytez.ByteSource msg,
boolean doFlush)
send a byte[] message
|
boolean |
offer(String receiverNodeId,
org.nustaq.offheap.bytez.ByteSource msg,
long start,
int len,
boolean doFlush)
send a byte[] message
|
void |
setPacketRateLimit(int limit) |
boolean offer(String receiverNodeId, byte[] b, int start, int len, boolean doFlush)
receiverNodeId - - null to send to all subscribers, aNodeId to target a specific nodeb - - bytes to sendstart - - start offsetlen - - number of bytes to senddoFlush - - if true, the currently written packet is sent immediately EXCEPT your send rate is > pps limit (packets per second)
only set to true if you care mostly about latency instead of throughput. fast cast automatically flushes after one ms. So a
value of true only makes sense if you care about micros.boolean offer(String receiverNodeId, org.nustaq.offheap.bytez.ByteSource msg, long start, int len, boolean doFlush)
receiverNodeId - - null to send to all subscribers, aNodeId to target a specific nodemsg - - byte source containing the message bytesstart - - start offsetlen - - number of bytes to senddoFlush - - if true, the currently written packet is sent immediately EXCEPT your send rate is > pps limit (packets per second)
only set to true if you care mostly about latency instead of throughput. fast cast automatically flushes after one ms. So a
value of true only makes sense if you care about micros.boolean offer(String receiverNodeId, org.nustaq.offheap.bytez.ByteSource msg, boolean doFlush)
receiverNodeId - - null to send to all subscribers, aNodeId to target a specific nodemsg - - byte source containing the message bytes.doFlush - - if true, the currently written packet is sent immediately EXCEPT your send rate is > pps limit (packets per second)
only set to true if you care mostly about latency instead of throughput. fast cast automatically flushes after one ms. So a
value of true only makes sense if you care about micros.int getTopicId()
void flush()
void setPacketRateLimit(int limit)
int getPacketRateLimit()
FCPublisher batchOnLimit(boolean doBatch)
doBatch - boolean isBatchOnLimit(boolean doBatch)
Copyright © 2015. All rights reserved.