Package org.openspaces.core.gateway
Class GatewayTarget
java.lang.Object
org.openspaces.core.gateway.GatewayTarget
Holds gateway target configuration.
- Since:
- 8.0.3
- Author:
- Idan Moyal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasGatewayPolicy(GatewayPolicy defaultGatewayPolicy) getName()get limited redo log capacity behavior policy for this gatewayget replicate change as update behavior for this gateway.voidsetBulkSize(Integer bulkSize) Sets the number of packets in each replication bulk sent to this gateway.voidsetIdleTimeThreshold(Long idleTimeThreshold) Sets the maximum time (in milliseconds) pending replication packets should wait before being replicated ifsetPendingOperationThreshold(Integer)has not been breached.voidsetMaxRedoLogCapacity(Long maxRedoLogCapacity) Sets limited redo log capacity for this gatewayvoidSets the gateway's target name used for identification.voidsetOnRedoLogCapacityExceeded(RedoLogCapacityExceededPolicy onRedoLogCapacityExceeded) Sets the behavior once the defined redo log capacity is exceeded, irrelevant if the capacity is unlimited.voidsetPendingOperationThreshold(Integer pendingOperationThreshold) Sets the threshold count for pending replication packets that once reached, the packets will be replicated using thesetBulkSize(Integer).voidsetReplicateChangeAsUpdate(Boolean replicateChangeAsUpdate) Sets whether change operations should be replicated as full update.voidSets unlimited replication redo log capacity for this gateway.
-
Constructor Details
-
GatewayTarget
public GatewayTarget() -
GatewayTarget
-
-
Method Details
-
getName
- Returns:
- The gateway's target name used for identification.
-
setName
Sets the gateway's target name used for identification.- Parameters:
name- The gateway name.
-
setBulkSize
Sets the number of packets in each replication bulk sent to this gateway.- Parameters:
bulkSize- number of packets in each replication bulk sent to this gateway.
-
getBulkSize
- Returns:
- The number of packets in each replication bulk sent to this gateway
-
setIdleTimeThreshold
Sets the maximum time (in milliseconds) pending replication packets should wait before being replicated ifsetPendingOperationThreshold(Integer)has not been breached.- Parameters:
idleTimeThreshold- the maximum time (in milliseconds).
-
getIdleTimeThreshold
- Returns:
- The maximum time (in milliseconds) pending replication packets should wait before
being replicated if
setPendingOperationThreshold(Integer)has not been breached.
-
setPendingOperationThreshold
Sets the threshold count for pending replication packets that once reached, the packets will be replicated using thesetBulkSize(Integer).- Parameters:
pendingOperationThreshold- the threshold count.- See Also:
-
getPendingOperationThreshold
- Returns:
- The threshold count for pending replication packets that once reached, the packets
will be replicated using the
setBulkSize(Integer).
-
setUnlimitedRedoLogCapacity
public void setUnlimitedRedoLogCapacity()Sets unlimited replication redo log capacity for this gateway. -
setMaxRedoLogCapacity
Sets limited redo log capacity for this gateway- Parameters:
maxRedoLogCapacity- redo log limit
-
getMaxRedoLogCapacity
- Returns:
- The limited redo log capacity for this gateway.
-
setOnRedoLogCapacityExceeded
Sets the behavior once the defined redo log capacity is exceeded, irrelevant if the capacity is unlimited.- See Also:
-
getOnRedoLogCapacityExceeded
get limited redo log capacity behavior policy for this gateway -
setReplicateChangeAsUpdate
Sets whether change operations should be replicated as full update.- Parameters:
replicateChangeAsUpdate- true if change should be replicated as update.
-
isReplicateChangeAsUpdate
get replicate change as update behavior for this gateway. -
asGatewayPolicy
- Returns:
- A new
GatewayPolicyinstance from the gateway target's properties.
-
asGatewayPolicy
- Returns:
- A new
GatewayPolicyinstance from the gateway target's properties, using provided default policy for properties which are not explicitly set by this instance.
-