Package org.openspaces.core.gateway
Class GatewayTargetsFactoryBean
java.lang.Object
org.openspaces.core.gateway.GatewayTargetsFactoryBean
- All Implemented Interfaces:
SpaceCustomComponentFactoryBean,org.springframework.beans.factory.InitializingBean
public class GatewayTargetsFactoryBean
extends Object
implements SpaceCustomComponentFactoryBean, org.springframework.beans.factory.InitializingBean
A factory bean for creating a
GatewaysPolicy instance.- Since:
- 8.0.3
- Author:
- Idan Moyal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetBulkSize(Integer bulkSize) Sets the number of packets in each replication bulk sent to this gateway.voidsetGatewayTargets(List<GatewayTarget> gatewayTargets) Sets the gateway targets configuration.voidsetIdleTimeThreshold(Long idleTimeThreshold) Sets the maximum time (in milliseconds) pending replication packets should wait before being replicated ifsetPendingOperationThreshold(Integer)has not been breached.voidsetLocalGatewayName(String localGatewayName) Sets the local gateway name used for identification.voidsetMaxRedoLogCapacity(Long maxRedoLogCapacity) Sets limited redo log capacity for this gatewayvoidsetOnRedoLogCapacityExceeded(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.
-
Constructor Details
-
GatewayTargetsFactoryBean
public GatewayTargetsFactoryBean()
-
-
Method Details
-
setLocalGatewayName
Sets the local gateway name used for identification.- Parameters:
localGatewayName- The local gateway name.
-
getLocalGatewayName
- Returns:
- The local gateway name used for identification.
-
getGatewayTargets
- Returns:
GatewayTargets configuration as array.
-
setGatewayTargets
Sets the gateway targets configuration.- Parameters:
gatewayTargets- The gateway targets.
-
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.
-
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).
-
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:
-
setMaxRedoLogCapacity
Sets limited redo log capacity for this gateway- Parameters:
maxRedoLogCapacity- redo log limit
-
setOnRedoLogCapacityExceeded
Sets the behavior once the defined redo log capacity is exceeded, irrelevant if the capacity is unlimited.- See Also:
-
setReplicateChangeAsUpdate
Sets whether change operations should be replicated as full update.- Parameters:
replicateChangeAsUpdate- true if change should be replicated as update.
-
asGatewaysPolicy
- Returns:
- A new
GatewaysPolicyinstance using the bean's properties.
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
createSpaceComponent
- Specified by:
createSpaceComponentin interfaceSpaceCustomComponentFactoryBean
-