|
GemFire 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.cache.util.GatewayQueueAttributes
public class GatewayQueueAttributes
Class GatewayQueueAttributes contains attributes
related to the Gateway queue such as batch size and
disk directories.
| Field Summary | |
|---|---|
static boolean |
DEFAULT_BATCH_CONFLATION
The default batch conflation |
static int |
DEFAULT_BATCH_SIZE
The default batch size |
static int |
DEFAULT_BATCH_TIME_INTERVAL
The default batch time interval in milliseconds |
static boolean |
DEFAULT_ENABLE_PERSISTENCE
The default enable persistence |
static int |
DEFAULT_MAXIMUM_QUEUE_MEMORY
The default maximum amount of memory (MB) to allow in the queue before overflowing entries to disk |
static String |
DEFAULT_OVERFLOW_DIRECTORY
The default overflow directory |
| Constructor Summary | |
|---|---|
GatewayQueueAttributes()
Default constructor. |
|
GatewayQueueAttributes(String overflowDirectory,
int maximumQueueMemory,
int batchSize,
int batchTimeInterval,
boolean batchConflation,
boolean enablePersistence)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
getBatchConflation()
Answers whether to enable batch conflation for a Gateway's
queue. |
int |
getBatchSize()
Answers the batch size for a Gateway's queue. |
int |
getBatchTimeInterval()
Answers the batch time interval for a Gateway's queue. |
boolean |
getEnablePersistence()
Answers whether to enable persistence for a Gateway's
queue. |
int |
getMaximumQueueMemory()
Answers maximum amount of memory (in MB) for a Gateway's
queue. |
String |
getOverflowDirectory()
Answers the overflow directory for a Gateway queue's
overflowed and/or persisted queue entries. |
void |
setBatchConflation(boolean batchConflation)
Sets whether to enable batch conflation for a Gateway's
queue. |
void |
setBatchSize(int batchSize)
Sets the batch size for a Gateway's queue. |
void |
setBatchTimeInterval(int batchTimeInterval)
Sets the batch time interval for a Gateway's queue. |
void |
setEnablePersistence(boolean enablePersistence)
Sets whether to enable persistence for a Gateway's
queue. |
void |
setMaximumQueueMemory(int maximumQueueMemory)
Sets the maximum amount of memory (in MB) for a Gateway's
queue. |
void |
setOverflowDirectory(String overflowDirectory)
Sets the overflow directory for a Gateway queue's overflowed
and/or persisted queue entries. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_OVERFLOW_DIRECTORY
public static final int DEFAULT_MAXIMUM_QUEUE_MEMORY
public static final int DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_TIME_INTERVAL
public static final boolean DEFAULT_BATCH_CONFLATION
public static final boolean DEFAULT_ENABLE_PERSISTENCE
| Constructor Detail |
|---|
public GatewayQueueAttributes()
public GatewayQueueAttributes(String overflowDirectory,
int maximumQueueMemory,
int batchSize,
int batchTimeInterval,
boolean batchConflation,
boolean enablePersistence)
overflowDirectory - The name of the directory in which to store
overflowed and/or persisted queue entries (if persistence is enabled)maximumQueueMemory - The maximum heap memory to be used by the
queuebatchSize - The batch size for messages sent between
GatewaysbatchTimeInterval - The maximum time interval in milliseconds
to wait before sending an incomplete batch of messages between
GatewaysbatchConflation - Whether to enable conflation for
batches of messages sent between GatewaysenablePersistence - Whether to enable persistence for this
Gateway's queue| Method Detail |
|---|
public void setOverflowDirectory(String overflowDirectory)
Gateway queue's overflowed
and/or persisted queue entries.
overflowDirectory - the overflow directory for a Gateway
queue's overflowed and/or persisted queue entriespublic String getOverflowDirectory()
Gateway queue's
overflowed and/or persisted queue entries.
Gateway queue's
overflowed and/or persisted queue entriespublic void setMaximumQueueMemory(int maximumQueueMemory)
Gateway's
queue.
maximumQueueMemory - The maximum amount of memory (in MB) for a
Gateway's queue.public int getMaximumQueueMemory()
Gateway's
queue.
Gateway's
queuepublic void setBatchSize(int batchSize)
Gateway's queue.
batchSize - The size of batches sent from a Gateway
to its corresponding Gateway.public int getBatchSize()
Gateway's queue.
Gateway's queuepublic void setBatchTimeInterval(int batchTimeInterval)
Gateway's queue.
batchTimeInterval - The maximum time interval that can elapse
before a partial batch is sent from a Gateway
to its corresponding Gateway.public int getBatchTimeInterval()
Gateway's queue.
Gateway's queuepublic void setBatchConflation(boolean batchConflation)
Gateway's
queue.
batchConflation - Whether or not to enable batch conflation
for batches sent from a Gateway to its corresponding
Gateway.public boolean getBatchConflation()
Gateway's
queue.
Gateway to its corresponding Gateway.public void setEnablePersistence(boolean enablePersistence)
Gateway's
queue.
enablePersistence - Whether to enable persistence for a
Gateway's queuepublic boolean getEnablePersistence()
Gateway's
queue.
Gateway's
queue
|
GemFire 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||