public class GridDrSenderCacheConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DFLT_BATCH_SND_FREQUENCY
Default data center replication sender cache batch send frequency.
|
static int |
DFLT_BATCH_SND_SIZE
Default data center replication sender cache batch send size.
|
static int |
DFLT_MAX_BATCHES
Default data center replication sender cache maximum amount of pending batches.
|
static GridDrSenderCacheMode |
DFLT_MODE
Default data center replication sender cache mode.
|
static GridDrSenderHubLoadBalancingMode |
DFLT_SND_HUB_LOAD_BALANCING_MODE
Default data center replication sender cache sender hub load balancing mode.
|
static int |
DFLT_STATE_TRANSFER_THREADS_CNT
Default data center replication sender cache amount of worker threads responsible for full state transfer.
|
static long |
DFLT_STATE_TRANSFER_THROTTLE
Default data center replication sender cache state transfer throttle.
|
| Constructor and Description |
|---|
GridDrSenderCacheConfiguration()
Default constructor.
|
GridDrSenderCacheConfiguration(GridDrSenderCacheConfiguration cfg)
Copying constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBatchSendFrequency()
Gets batch send frequency.
|
int |
getBatchSendSize()
Gets batch send size.
|
GridDrSenderCacheEntryFilter |
getEntryFilter()
Gets entry filter.
|
int |
getMaxBatches()
Gets maximum amount of batches awaiting for sender hub acknowledge.
|
GridDrSenderCacheMode |
getMode()
Gets mode.
|
GridDrSenderHubLoadBalancingMode |
getSenderHubLoadBalancingMode()
Gets sender hub load balancing mode.
|
int |
getStateTransferThreadsCount()
Gets state transfer threads count.
|
long |
getStateTransferThrottle()
Gets state transfer throttle.
|
void |
setBatchSendFrequency(long batchSndFreq)
Sets batch send frequency.
|
void |
setBatchSendSize(int batchSndSize)
Sets batch send size.
|
void |
setEntryFilter(GridDrSenderCacheEntryFilter entryFilter)
Set entry filter.
|
void |
setMaxBatches(int maxBatches)
Sets maximum amount of batches awaiting for sender hub acknowledge.
|
void |
setMode(GridDrSenderCacheMode mode)
Sets mode.
|
void |
setSenderHubLoadBalancingMode(GridDrSenderHubLoadBalancingMode sndHubLoadBalancingMode)
Sets sender hub load balancing mode.
|
void |
setStateTransferThreadsCount(int stateTransferThreadsCnt)
Sets state transfer threads count.
|
void |
setStateTransferThrottle(long stateTransferThrottle)
Sets state transfer throttle.
|
String |
toString() |
public static final GridDrSenderCacheMode DFLT_MODE
public static final long DFLT_BATCH_SND_FREQUENCY
public static final int DFLT_BATCH_SND_SIZE
public static final int DFLT_MAX_BATCHES
public static final GridDrSenderHubLoadBalancingMode DFLT_SND_HUB_LOAD_BALANCING_MODE
public static final int DFLT_STATE_TRANSFER_THREADS_CNT
public static final long DFLT_STATE_TRANSFER_THROTTLE
public GridDrSenderCacheConfiguration()
public GridDrSenderCacheConfiguration(GridDrSenderCacheConfiguration cfg)
cfg - Configuration to copy.@Nullable public GridDrSenderCacheMode getMode()
GridDrSenderCacheMode for more info.
Defaults to DFLT_MODE.
public void setMode(GridDrSenderCacheMode mode)
getMode() for more information.mode - Mode.public int getBatchSendSize()
getBatchSendFrequency() batch will be sent to a sender hub.
When set to non-positive value, batch will be sent only in case it's lifetime is greater than
getBatchSendFrequency().
Defaults to DFLT_BATCH_SND_SIZE.
public void setBatchSendSize(int batchSndSize)
getBatchSendSize() for more information.batchSndSize - Batch send size.public long getBatchSendFrequency()
getBatchSendSize() or it's lifetime
is greater than the given value batch will be sent to a sender hub.
When set to non-positive value, batch will be sent only in case it's size is greater than
#getBatchSendSize().
Defaults to DFLT_BATCH_SND_FREQUENCY.
public void setBatchSendFrequency(long batchSndFreq)
getBatchSendFrequency() for more
information.batchSndFreq - Batch send frequency.public int getMaxBatches()
When set to non-positive value, maximum amount of batches is unlimited.
Defaults to DFLT_MAX_BATCHES.
public void setMaxBatches(int maxBatches)
getMaxBatches() for more
information.maxBatches - Maximum amount of batches awaiting for sender hub acknowledge.public GridDrSenderCacheEntryFilter getEntryFilter()
Defaults to null.
public void setEntryFilter(@Nullable GridDrSenderCacheEntryFilter entryFilter)
getEntryFilter() for more information.entryFilter - Entry filter.public GridDrSenderHubLoadBalancingMode getSenderHubLoadBalancingMode()
Defaults to DFLT_SND_HUB_LOAD_BALANCING_MODE.
public void setSenderHubLoadBalancingMode(GridDrSenderHubLoadBalancingMode sndHubLoadBalancingMode)
getSenderHubLoadBalancingMode() for more information.sndHubLoadBalancingMode - Sender hub load balancing mode.public long getStateTransferThrottle()
When set to 0 throttling is disabled.
Defaults to DFLT_STATE_TRANSFER_THROTTLE.
public void setStateTransferThrottle(long stateTransferThrottle)
getStateTransferThrottle() for more information.stateTransferThrottle - State transfer throttle.public int getStateTransferThreadsCount()
Defaults to DFLT_STATE_TRANSFER_THREADS_CNT.
public void setStateTransferThreadsCount(int stateTransferThreadsCnt)
getStateTransferThreadsCount() for more information.stateTransferThreadsCnt - State transfer threads countCopyright © 2014. All rights reserved.