public class GatewayTargetsFactoryBean extends Object implements InitializingBean
GatewaysPolicy
instance.Constructor and Description |
---|
GatewayTargetsFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
com.gigaspaces.internal.cluster.node.impl.gateway.GatewaysPolicy |
asGatewaysPolicy() |
List<GatewayTarget> |
getGatewayTargets() |
String |
getLocalGatewayName() |
void |
setBulkSize(Integer bulkSize)
Sets the number of packets in each replication bulk sent to this gateway.
|
void |
setGatewayTargets(List<GatewayTarget> gatewayTargets)
Sets the gateway targets configuration.
|
void |
setIdleTimeThreshold(Long idleTimeThreshold)
Sets the maximum time (in milliseconds) pending replication packets should wait before being replicated if
setPendingOperationThreshold(Integer) has not been breached. |
void |
setLocalGatewayName(String localGatewayName)
Sets the local gateway name used for identification.
|
void |
setMaxRedoLogCapacity(Long maxRedoLogCapacity)
Sets limited redo log capacity for this gateway
|
void |
setOnRedoLogCapacityExceeded(com.j_spaces.core.cluster.RedoLogCapacityExceededPolicy onRedoLogCapacityExceeded)
Sets the behavior once the defined redo log capacity is exceeded, irrelevant if the capacity is unlimited.
|
void |
setPendingOperationThreshold(Integer pendingOperationThreshold)
Sets the threshold count for pending replication packets that once reached, the packets will be replicated using the
setBulkSize(Integer) . |
void |
setReplicateChangeAsUpdate(Boolean replicateChangeAsUpdate)
Sets whether change operations should be replicated as full update.
|
public void setLocalGatewayName(String localGatewayName)
localGatewayName
- The local gateway name.public String getLocalGatewayName()
public List<GatewayTarget> getGatewayTargets()
GatewayTarget
s configuration as array.public void setGatewayTargets(List<GatewayTarget> gatewayTargets)
gatewayTargets
- The gateway targets.public void setBulkSize(Integer bulkSize)
bulkSize
- number of packets in each replication bulk sent to this gateway.public void setIdleTimeThreshold(Long idleTimeThreshold)
setPendingOperationThreshold(Integer)
has not been breached.idleTimeThreshold
- the maximum time (in milliseconds).public void setPendingOperationThreshold(Integer pendingOperationThreshold)
setBulkSize(Integer)
.pendingOperationThreshold
- the threshold count.setIdleTimeThreshold(Long)
public void setMaxRedoLogCapacity(Long maxRedoLogCapacity)
maxRedoLogCapacity
- redo log limitpublic void setOnRedoLogCapacityExceeded(com.j_spaces.core.cluster.RedoLogCapacityExceededPolicy onRedoLogCapacityExceeded)
onRedoLogCapacityExceeded
- setMaxRedoLogCapacity(Long)
public void setReplicateChangeAsUpdate(Boolean replicateChangeAsUpdate)
replicateChangeAsUpdate
- true if change should be replicated as update.public com.gigaspaces.internal.cluster.node.impl.gateway.GatewaysPolicy asGatewaysPolicy()
GatewaysPolicy
instance using the bean's properties.public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
Copyright © GigaSpaces.