public static interface ClusterConfiguration.MulticastConfiguration
| Modifier and Type | Method and Description |
|---|---|
void |
host(java.lang.String host)
Multicast host.
|
void |
netInterface(java.lang.String netInterface)
Network interface to be used by Multicast socket.
|
void |
packetSize(int size)
For lowest latency choose a packet size slightly lower than netork MTU.
|
void |
packetsPerSecond(int pps)
Limits the amount of packets per seconds that might be sent to multicast socket
directly.
|
void |
port(int port)
Multicast port.
|
void |
preferBatchingToLatency(boolean batching)
Setting that denotes whether to flush every on every Command processed or to buffer it
until max packet size is reached.
|
void |
receiveBufferSize(int size)
Socket receive buffer size.
|
void |
retransmitPacketsHistory(int packets)
The number of packets which will be persistently stored in offheap memory for
NAK retransmition purpose.
|
void |
sendBufferSize(int size)
Socket send buffer size.
|
void |
sendRetries(int retries)
An amount of retries to send in case of PPS limit reached, send buffers full,
or initialization is not yet fully happend.
|
void |
spinLoopMicros(int micros)
Microseconds during which busy spin loop awaiting new packets will be performed.
|
void |
threadParkMicros(int micros)
Microseconds during which LockSupport.parkNanos() will be called in busy spin loop.
|
void |
ttl(int ttl)
Milticast transport TTL (Time to live).
|
void host(java.lang.String host)
host - void port(int port)
port - void netInterface(java.lang.String netInterface)
netInterface - void receiveBufferSize(int size)
size - void sendBufferSize(int size)
size - void packetsPerSecond(int pps)
preferBatchingToLatency(boolean) is set to false.
Default value is 3k.pps - void spinLoopMicros(int micros)
micros - void threadParkMicros(int micros)
spinLoopMicros(int) is set to 0, this setting makes no sense.micros - void retransmitPacketsHistory(int packets)
packets - void packetSize(int size)
size - void preferBatchingToLatency(boolean batching)
false for real low latency and stronger failover
guarantees.
Default value is true.batching - void ttl(int ttl)
ttl - void sendRetries(int retries)
retries - Copyright © 2015 Artem Dmitriev. All Rights Reserved.