VMware GemFire Java API Reference
Interface AsyncEventQueue
-
public interface AsyncEventQueueInterface of AsyncEventQueue. This represents the channel over which the events are delivered to theAsyncEventListener.- Since:
- GemFire 7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncEventListenergetAsyncEventListener()TheAsyncEventListenerthat is attached to the queue.intgetBatchSize()Represents the size of a batch that gets delivered over the AsyncEventQueue.intgetBatchTimeInterval()Represents the maximum time interval that can elapse before a batch is sent fromAsyncEventQueue.java.lang.StringgetDiskStoreName()The Disk store that is required for overflow and persistenceintgetDispatcherThreads()Returns the number of dispatcher threads working for thisAsyncEventQueue.java.util.List<GatewayEventFilter>getGatewayEventFilters()Returns theGatewayEventFiltersfor thisAsyncEventQueueGatewayEventSubstitutionFiltergetGatewayEventSubstitutionFilter()Returns theGatewayEventSubstitutionFilterfor thisAsyncEventQueuejava.lang.StringgetId()intgetMaximumQueueMemory()The maximum memory after which the data needs to be overflowed to disk.GatewaySender.OrderPolicygetOrderPolicy()Returns the order policy followed while dispatching the events to AsyncEventListener.booleanisBatchConflationEnabled()Represents whether batch conflation is enabled for batches sent fromAsyncEventQueue.booleanisDiskSynchronous()Represents whether writing to disk is synchronous or not.booleanisDispatchingPaused()Returns whether the queue is processing queued events or is pausedbooleanisForwardExpirationDestroy()Represents if expiration destroy operations are forwarded (passed) toAsyncEventListener.booleanisParallel()Represents whether this queue is parallel (higher throughput) or serial.booleanisPersistent()Represents whether the AsyncEventQueue is configured to be persistent or non-persistent.booleanisPrimary()Represents whether the queue is primary or secondary.voidresumeEventDispatching()Resumes the dispatching of then events queued to the listener.intsize()Returns the number of entries in thisAsyncEventQueue.
-
-
-
Method Detail
-
getId
java.lang.String getId()
- Returns:
- String Id of the AsyncEventQueue
-
getDiskStoreName
java.lang.String getDiskStoreName()
The Disk store that is required for overflow and persistence- Returns:
- the name of the disk store
-
getMaximumQueueMemory
int getMaximumQueueMemory()
The maximum memory after which the data needs to be overflowed to disk. Default is 100 MB.- Returns:
- the maximum memory after which the data needs to be overflowed to disk
-
getBatchSize
int getBatchSize()
Represents the size of a batch that gets delivered over the AsyncEventQueue. Default batchSize is 100.- Returns:
- the size of a batch that gets delivered over the AsyncEventQueue
-
getBatchTimeInterval
int getBatchTimeInterval()
Represents the maximum time interval that can elapse before a batch is sent fromAsyncEventQueue. Default batchTimeInterval is 5 ms.- Returns:
- the maximum time interval that can elapse before a batch is sent from
AsyncEventQueue
-
isBatchConflationEnabled
boolean isBatchConflationEnabled()
Represents whether batch conflation is enabled for batches sent fromAsyncEventQueue. Default is false.- Returns:
- whether batch conflation is enabled
-
isPersistent
boolean isPersistent()
Represents whether the AsyncEventQueue is configured to be persistent or non-persistent. Default is false.- Returns:
- whether the AsyncEventQueue is configured to be persistent
-
isDiskSynchronous
boolean isDiskSynchronous()
Represents whether writing to disk is synchronous or not. Default is true.- Returns:
- whether writing to disk is synchronous
-
isPrimary
boolean isPrimary()
Represents whether the queue is primary or secondary. Events get delivered only by the primary queue. If the primary queue goes down then the secondary queue first becomes primary and then starts delivering the events.- Returns:
- whether the queue is primary
-
getAsyncEventListener
AsyncEventListener getAsyncEventListener()
TheAsyncEventListenerthat is attached to the queue. All the event passing over the queue are delivered to attached listener.- Returns:
- AsyncEventListener Implementation of AsyncEventListener
-
isParallel
boolean isParallel()
Represents whether this queue is parallel (higher throughput) or serial.- Returns:
- boolean True if the queue is parallel, false otherwise.
-
getDispatcherThreads
int getDispatcherThreads()
Returns the number of dispatcher threads working for thisAsyncEventQueue. Default number of dispatcher threads is 5.- Returns:
- the number of dispatcher threads working for this
AsyncEventQueue
-
getOrderPolicy
GatewaySender.OrderPolicy getOrderPolicy()
Returns the order policy followed while dispatching the events to AsyncEventListener. Order policy is set only when dispatcher threads are > 1. Default order policy is KEY.- Returns:
- the order policy followed while dispatching the events to AsyncEventListener.
-
size
int size()
Returns the number of entries in thisAsyncEventQueue.- Returns:
- the number of entries in this
AsyncEventQueue.
-
getGatewayEventFilters
java.util.List<GatewayEventFilter> getGatewayEventFilters()
Returns theGatewayEventFiltersfor thisAsyncEventQueue- Returns:
- the
GatewayEventFiltersfor thisAsyncEventQueue
-
getGatewayEventSubstitutionFilter
GatewayEventSubstitutionFilter getGatewayEventSubstitutionFilter()
Returns theGatewayEventSubstitutionFilterfor thisAsyncEventQueue- Returns:
- the
GatewayEventSubstitutionFilterfor thisAsyncEventQueue
-
isForwardExpirationDestroy
boolean isForwardExpirationDestroy()
Represents if expiration destroy operations are forwarded (passed) toAsyncEventListener.- Returns:
- boolean True if expiration destroy operations are forwarded.
-
resumeEventDispatching
void resumeEventDispatching()
Resumes the dispatching of then events queued to the listener.
-
isDispatchingPaused
boolean isDispatchingPaused()
Returns whether the queue is processing queued events or is paused- Returns:
- whether the queue is paused
-
-