public class ClientCacheDrSenderConfiguration extends Object
CacheDrSenderConfiguration.| Constructor and Description |
|---|
ClientCacheDrSenderConfiguration()
Constructor.
|
ClientCacheDrSenderConfiguration(ClientCacheDrSenderConfiguration cfg)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBatchSendFrequency()
Gets batch send frequency.
|
DrSenderLoadBalancingMode |
getLoadBalancingMode()
Gets sender hub load balancing mode.
|
int |
getMaxBackupQueueSize()
Gets maximum size of backup entries queue.
|
int |
getMaxBatches()
Gets maximum amount of batches awaiting for sender hub acknowledge.
|
String |
getSenderGroup()
Gets sender group name which sender will be used for replication.
|
boolean |
isPreferLocalSender()
Whether to prefer the local sender hub (if available) ignoring the load balancing policy.
|
ClientCacheDrSenderConfiguration |
setBatchSendFrequency(long batchSndFreq)
Sets batch send frequency.
|
ClientCacheDrSenderConfiguration |
setLoadBalancingMode(DrSenderLoadBalancingMode loadBalancingMode)
Sets sender hub load balancing mode.
|
ClientCacheDrSenderConfiguration |
setMaxBackupQueueSize(int maxBackupSize)
Sets maximum size of backup entries queue.
|
ClientCacheDrSenderConfiguration |
setMaxBatches(int maxBatches)
Sets maximum amount of batches awaiting for sender hub acknowledge.
|
ClientCacheDrSenderConfiguration |
setPreferLocalSender(boolean preferLocSnd)
Sets whether to prefer the local sender hub.
|
ClientCacheDrSenderConfiguration |
setSenderGroup(String senderGroup)
Sets sender group name which sender will be used for replication.
|
String |
toString() |
public ClientCacheDrSenderConfiguration()
public ClientCacheDrSenderConfiguration(ClientCacheDrSenderConfiguration cfg)
cfg - Config to copy from.public long getBatchSendFrequency()
public ClientCacheDrSenderConfiguration setBatchSendFrequency(long batchSndFreq)
batchSndFreq - Batch send frequency.this for chaining.public int getMaxBatches()
When set to non-positive value, maximum amount of batches is unlimited.
Defaults to CacheDrSenderConfiguration.DFLT_MAX_BATCHES.
public ClientCacheDrSenderConfiguration setMaxBatches(int maxBatches)
getMaxBatches() for more
information.maxBatches - Maximum amount of batches awaiting for sender hub acknowledge.this for chaining.public DrSenderLoadBalancingMode getLoadBalancingMode()
Defaults to CacheDrSenderConfiguration.DFLT_SND_HUB_LOAD_BALANCING_MODE.
public ClientCacheDrSenderConfiguration setLoadBalancingMode(DrSenderLoadBalancingMode loadBalancingMode)
getLoadBalancingMode() for more information.loadBalancingMode - Sender hub load balancing mode.this for chaining.public boolean isPreferLocalSender()
Defaults to CacheDrSenderConfiguration.DFLT_PREFER_LOC_SND.
True whether to prefer local sender hub.public ClientCacheDrSenderConfiguration setPreferLocalSender(boolean preferLocSnd)
isPreferLocalSender() for more information.preferLocSnd - Whether to prefer the local sender.this for chaining.public int getMaxBackupQueueSize()
public ClientCacheDrSenderConfiguration setMaxBackupQueueSize(int maxBackupSize)
maxBackupSize - Maximum size of backup entries queue.this for chaining.public String getSenderGroup()
public ClientCacheDrSenderConfiguration setSenderGroup(String senderGroup)
null, then default group will be used
DrUtils.DFLT_SENDER_GROUP_NAME.senderGroup - Sender group name.this for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025