public class SyncReplPolicy extends Object implements SmartExternalizable
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_ACK_INTERVAL |
static long |
DEFAULT_ASYNC_INTERVAL_TO_CHECK |
static long |
DEFAULT_ASYNC_ONE_WAY_HEARTBEAT_INTERVAL |
static ConsistencyLevel |
DEFAULT_CONSISTENCY_LEVEL |
static String |
DEFAULT_IP_GROUP |
static int |
DEFAULT_MAX_THROTTLE_TP_WHEN_INACTIVE |
static int |
DEFAULT_MIN_THROTTLE_TP_WHEN_ACTIVE |
static int |
DEFAULT_MULTICAST_MAX_WORK_THREADS |
static int |
DEFAULT_MULTICAST_MIN_WORK_THREADS |
static int |
DEFAULT_MULTICAST_TTL |
static int |
DEFAULT_MULTIPLE_OPERATION_CHUNK_SIZE |
static int |
DEFAULT_PORT |
static long |
DEFAULT_RESPONSE_TIMEOUT |
static long |
DEFAULT_TARGET_CONSUME_TIMEOUT |
static boolean |
DEFAULT_THROTTLE_WHEN_INACTIVE |
static long |
DEFAULT_TODO_QUEUE_TIMEOUT |
static int |
DEFAULT_UNICAST_MAX_WORK_THREADS |
static int |
DEFAULT_UNICAST_MIN_WORK_THREADS |
String |
nodeName |
Constructor and Description |
---|
SyncReplPolicy()
Empty constructor for externalizable.
|
SyncReplPolicy(String nodeName)
Constructor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
enabledSmartExternalizableWithReference
public static final String DEFAULT_IP_GROUP
public static final int DEFAULT_PORT
public static final int DEFAULT_MULTICAST_TTL
public static final long DEFAULT_TODO_QUEUE_TIMEOUT
public static final long DEFAULT_ASYNC_INTERVAL_TO_CHECK
public static final long DEFAULT_RESPONSE_TIMEOUT
public static final long DEFAULT_ACK_INTERVAL
public static final long DEFAULT_ASYNC_ONE_WAY_HEARTBEAT_INTERVAL
public static final int DEFAULT_UNICAST_MIN_WORK_THREADS
public static final int DEFAULT_UNICAST_MAX_WORK_THREADS
public static final int DEFAULT_MULTICAST_MIN_WORK_THREADS
public static final int DEFAULT_MULTICAST_MAX_WORK_THREADS
public static final int DEFAULT_MULTIPLE_OPERATION_CHUNK_SIZE
public static final boolean DEFAULT_THROTTLE_WHEN_INACTIVE
public static final int DEFAULT_MAX_THROTTLE_TP_WHEN_INACTIVE
public static final int DEFAULT_MIN_THROTTLE_TP_WHEN_ACTIVE
public static final long DEFAULT_TARGET_CONSUME_TIMEOUT
public static final ConsistencyLevel DEFAULT_CONSISTENCY_LEVEL
public String nodeName
public SyncReplPolicy()
public SyncReplPolicy(String nodeName)
nodeNameThe
- name of node.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public boolean isHoldTxnLockUntilSyncReplication()
true
hold transaction lock until sync replication will be finished.public void setHoldTxnLockUntilSyncReplication(boolean isHoldTxnLock)
isHoldTxnLock
- If true
holds transaction lock until sync-replication will
be finished. NOTE: If true, may cause to the distributed
sync-replication dead-locks. Use only if special cases.public void setAsyncOneWayHeartBeatInterval(long heartBeatIntervalTime)
public long getAsyncOneWayHeartBeatInterval()
public long getAsyncIntervalToCheck()
public String getMulticastIpGroup()
public int getMulticastPort()
public int getMulticastTTL()
public void setMulticastTTL(int timeToLeave)
public void setNodeName(String nodeName)
nodeName
- The nodeName to set.public String getNodeName()
public int getMulticastMaxThreadPoolSize()
public void setMulticastMaxThreadPoolSize(int multicastMaxThreadPoolSize)
multicastMaxThreadPoolSize
- The multicastMaxThreadPoolSize to set.public int getMulticastMinThreadPoolSize()
public void setMulticastMinThreadPoolSize(int multicastMinThreadPoolSize)
multicastMinThreadPoolSize
- The multicastMinThreadPoolSize to set.public long getResponseTimeout()
public long getTodoQueueTimeout()
public void setTodoQueueTimeout(long todoQueueTimeout)
todoQueueTimeout
- The todoQueueTimeout to set.public void setAdaptiveMulticast(boolean isAdaptive)
true
multicast protocol will be adopted with TCP/IP. Adoptive binary
algorithm will find an max event size threshold for multicast packet. if the multicast packet
is greater that max threashold this packet packet will be sent by TCP/IP.isAdaptive
- isAdaptive multicast.public boolean isAdaptiveMulticast()
public int getUnicastMaxThreadPoolSize()
public void setUnicastMaxThreadPoolSize(int unicastMaxThreadPoolSize)
unicastMaxThreadPoolSize
- The unicastMaxThreadPoolSize to set.public int getUnicastMinThreadPoolSize()
public void setUnicastMinThreadPoolSize(int unicastMinThreadPoolSize)
unicastMinThreadPoolSize
- The unicastMinThreadPoolSize to set.public long getAckIntervalTime()
public void setMulticastIpGroup(String multicastIpGroup)
multicastIpGroup
- The multicastIpGroup to set.public void setMulticastPort(int multicastPort)
multicastPort
- The multicastPort to set.public void setMultipleOperationChunkSize(int chunkSmultipleOperChunkSizeize)
chunkSize
- maximum operations chunk size, or -1 if chunk mechanism disabled.public int getMultipleOperationChunkSize()
public boolean isThrottleWhenInactive()
public void setThrottleWhenInactive(boolean throttleWhenInactive)
public int getMaxThrottleTPWhenInactive()
public void setMaxThrottleTPWhenInactive(int maxThrottleTPWhenInactive)
public int getMinThrottleTPWhenActive()
public void setMinThrottleTPWhenActive(int minThrottleTPWhenActive)
public long getTargetConsumeTimeout()
public void setTargetConsumeTimeout(long targetConsumeTimeout)
public ConsistencyLevel getConsistencyLevel()
public void setConsistencyLevel(ConsistencyLevel consistencyLevel)
public String getDump()
Copyright © GigaSpaces.