public class AsyncEventQueueFactoryBean extends AbstractWANComponentFactoryBean<org.apache.geode.cache.asyncqueue.AsyncEventQueue>
FactoryBean for creating Apache Geode/Pivotal GemFire AsyncEventQueues.Cache,
Region,
AsyncEventListener,
AsyncEventQueue,
AbstractWANComponentFactoryBeancache, factory, log| Constructor and Description |
|---|
AsyncEventQueueFactoryBean(org.apache.geode.cache.Cache cache)
Constructs an instance of the AsyncEventQueueFactoryBean for creating an GemFire AsyncEventQueue.
|
AsyncEventQueueFactoryBean(org.apache.geode.cache.Cache cache,
org.apache.geode.cache.asyncqueue.AsyncEventListener asyncEventListener)
Constructs an instance of the AsyncEventQueueFactoryBean for creating an GemFire AsyncEventQueue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected void |
doInit() |
org.apache.geode.cache.asyncqueue.AsyncEventQueue |
getObject() |
Class<?> |
getObjectType() |
boolean |
isParallelEventQueue() |
boolean |
isSerialEventQueue() |
void |
setAsyncEventListener(org.apache.geode.cache.asyncqueue.AsyncEventListener listener) |
void |
setAsyncEventQueue(org.apache.geode.cache.asyncqueue.AsyncEventQueue asyncEventQueue)
Configures the
AsyncEventQueue returned by this FactoryBean. |
void |
setBatchConflationEnabled(Boolean batchConflationEnabled)
Enable or disable
AsyncEventQueue (AEQ) message conflation. |
void |
setBatchSize(Integer batchSize) |
void |
setBatchTimeInterval(Integer batchTimeInterval)
Configures the
AsyncEventQueue (AEQ) interval between sending batches. |
void |
setDiskStoreRef(String diskStoreRef) |
void |
setDiskSynchronous(Boolean diskSynchronous)
Configures the
AsyncEventQueue (AEQ) disk write synchronization policy. |
void |
setDispatcherThreads(Integer dispatcherThreads)
Configures the number of dispatcher threads used to process Region Events
from the associated
AsyncEventQueue (AEQ). |
void |
setForwardExpirationDestroy(Boolean forwardExpirationDestroy)
Forwards expiration (action-based) destroy events to the
AsyncEventQueue (AEQ). |
void |
setGatewayEventFilters(List<org.apache.geode.cache.wan.GatewayEventFilter> eventFilters) |
void |
setGatewayEventSubstitutionFilter(org.apache.geode.cache.wan.GatewayEventSubstitutionFilter eventSubstitutionFilter) |
void |
setMaximumQueueMemory(Integer maximumQueueMemory) |
void |
setOrderPolicy(org.apache.geode.cache.wan.GatewaySender.OrderPolicy orderPolicy) |
void |
setOrderPolicy(String orderPolicy)
Configures the
AsyncEventQueue (AEQ) ordering policy (e.g. |
void |
setParallel(Boolean parallel) |
void |
setPersistent(Boolean persistent) |
afterPropertiesSet, getName, isSingleton, setBeanName, setFactory, setNamepublic AsyncEventQueueFactoryBean(org.apache.geode.cache.Cache cache)
cache - the GemFire Cache reference.AsyncEventQueueFactoryBean(org.apache.geode.cache.Cache, org.apache.geode.cache.asyncqueue.AsyncEventListener)public AsyncEventQueueFactoryBean(org.apache.geode.cache.Cache cache,
org.apache.geode.cache.asyncqueue.AsyncEventListener asyncEventListener)
cache - the GemFire Cache reference.asyncEventListener - required AsyncEventListenerpublic org.apache.geode.cache.asyncqueue.AsyncEventQueue getObject()
throws Exception
Exceptionpublic Class<?> getObjectType()
protected void doInit()
doInit in class AbstractWANComponentFactoryBean<org.apache.geode.cache.asyncqueue.AsyncEventQueue>public void destroy()
throws Exception
destroy in interface DisposableBeandestroy in class AbstractWANComponentFactoryBean<org.apache.geode.cache.asyncqueue.AsyncEventQueue>Exceptionpublic final void setAsyncEventListener(org.apache.geode.cache.asyncqueue.AsyncEventListener listener)
public void setAsyncEventQueue(org.apache.geode.cache.asyncqueue.AsyncEventQueue asyncEventQueue)
AsyncEventQueue returned by this FactoryBean.asyncEventQueue - overrides AsyncEventQueue returned by this FactoryBean.AsyncEventQueuepublic void setBatchConflationEnabled(Boolean batchConflationEnabled)
AsyncEventQueue (AEQ) message conflation.batchConflationEnabled - Boolean indicating whether to conflate queued events.AsyncEventQueueFactory.setBatchConflationEnabled(boolean)public void setBatchSize(Integer batchSize)
public void setBatchTimeInterval(Integer batchTimeInterval)
AsyncEventQueue (AEQ) interval between sending batches.batchTimeInterval - Integer specifying the maximum number of milliseconds
that can elapse between sending batches.AsyncEventQueueFactory.setBatchTimeInterval(int)public void setDiskStoreRef(String diskStoreRef)
public void setDiskSynchronous(Boolean diskSynchronous)
AsyncEventQueue (AEQ) disk write synchronization policy.diskSynchronous - boolean value indicating whether disk writes are synchronous.AsyncEventQueueFactory.setDiskSynchronous(boolean)public void setDispatcherThreads(Integer dispatcherThreads)
AsyncEventQueue (AEQ).dispatcherThreads - Integer specifying the number of dispatcher threads used
to process Region events from the associated queue.AsyncEventQueueFactory.setDispatcherThreads(int)public void setForwardExpirationDestroy(Boolean forwardExpirationDestroy)
AsyncEventQueue (AEQ).
By default, destroy events are not added to the AEQ. Setting this attribute to true
will add all expiration destroy events to the AEQ.forwardExpirationDestroy - boolean value indicating whether to forward expiration destroy events.AsyncEventQueueFactory.setForwardExpirationDestroy(boolean),
ExpirationAttributes.getAction(),
ExpirationAction.DESTROYpublic void setGatewayEventFilters(List<org.apache.geode.cache.wan.GatewayEventFilter> eventFilters)
public void setGatewayEventSubstitutionFilter(org.apache.geode.cache.wan.GatewayEventSubstitutionFilter eventSubstitutionFilter)
public void setMaximumQueueMemory(Integer maximumQueueMemory)
public void setOrderPolicy(String orderPolicy)
AsyncEventQueue (AEQ) ordering policy (e.g. KEY, PARTITION,
THREAD).
When dispatcher threads are greater than one, the ordering policy configures the way in which
multiple dispatcher threads process Region events from the queue.orderPolicy - String specifying the name of the AEQ order policy.AsyncEventQueueFactory.setOrderPolicy(GatewaySender.OrderPolicy)public void setOrderPolicy(org.apache.geode.cache.wan.GatewaySender.OrderPolicy orderPolicy)
public void setParallel(Boolean parallel)
public boolean isSerialEventQueue()
public boolean isParallelEventQueue()
public void setPersistent(Boolean persistent)
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.