public class GatewayTarget extends Object
Constructor and Description |
---|
GatewayTarget() |
GatewayTarget(String name) |
Modifier and Type | Method and Description |
---|---|
GatewayPolicy |
asGatewayPolicy() |
GatewayPolicy |
asGatewayPolicy(GatewayPolicy defaultGatewayPolicy) |
Integer |
getBulkSize() |
Long |
getIdleTimeThreshold() |
Long |
getMaxRedoLogCapacity() |
String |
getName() |
RedoLogCapacityExceededPolicy |
getOnRedoLogCapacityExceeded()
get limited redo log capacity behavior policy for this gateway
|
Integer |
getPendingOperationThreshold() |
Boolean |
isReplicateChangeAsUpdate()
get replicate change as update behavior for this gateway.
|
void |
setBulkSize(Integer bulkSize)
Sets the number of packets in each replication bulk sent to this gateway.
|
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 |
setMaxRedoLogCapacity(Long maxRedoLogCapacity)
Sets limited redo log capacity for this gateway
|
void |
setName(String name)
Sets the gateway's target name used for identification.
|
void |
setOnRedoLogCapacityExceeded(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.
|
void |
setUnlimitedRedoLogCapacity()
Sets unlimited replication redo log capacity for this gateway.
|
public GatewayTarget()
public GatewayTarget(String name)
public String getName()
public void setName(String name)
name
- The gateway name.public void setBulkSize(Integer bulkSize)
bulkSize
- number of packets in each replication bulk sent to this gateway.public Integer getBulkSize()
public void setIdleTimeThreshold(Long idleTimeThreshold)
setPendingOperationThreshold(Integer)
has not been breached.idleTimeThreshold
- the maximum time (in milliseconds).public Long getIdleTimeThreshold()
setPendingOperationThreshold(Integer)
has not been breached.public void setPendingOperationThreshold(Integer pendingOperationThreshold)
setBulkSize(Integer)
.pendingOperationThreshold
- the threshold count.setIdleTimeThreshold(Long)
public Integer getPendingOperationThreshold()
setBulkSize(Integer)
.public void setUnlimitedRedoLogCapacity()
public void setMaxRedoLogCapacity(Long maxRedoLogCapacity)
maxRedoLogCapacity
- redo log limitpublic Long getMaxRedoLogCapacity()
public void setOnRedoLogCapacityExceeded(RedoLogCapacityExceededPolicy onRedoLogCapacityExceeded)
setMaxRedoLogCapacity(Long)
public RedoLogCapacityExceededPolicy getOnRedoLogCapacityExceeded()
public void setReplicateChangeAsUpdate(Boolean replicateChangeAsUpdate)
replicateChangeAsUpdate
- true if change should be replicated as update.public Boolean isReplicateChangeAsUpdate()
public GatewayPolicy asGatewayPolicy()
GatewayPolicy
instance from the gateway target's properties.public GatewayPolicy asGatewayPolicy(GatewayPolicy defaultGatewayPolicy)
GatewayPolicy
instance from the gateway target's properties, using
provided default policy for properties which are not explicitly set by this instance.Copyright © GigaSpaces.