public class AsyncEventQueueFactoryBean extends AbstractWANComponentFactoryBean<org.apache.geode.cache.asyncqueue.AsyncEventQueue>
FactoryBean
for constructing, configuring and initializing AsyncEventQueues
.Cache
,
Region
,
AsyncEvent
,
AsyncEventListener
,
AsyncEventQueue
,
AsyncEventQueueFactory
,
FactoryBean
,
AbstractWANComponentFactoryBean
cache, factory, logger
DEFAULT_SINGLETON
OBJECT_TYPE_ATTRIBUTE
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.AsyncEventListener |
getAsyncEventListener()
|
org.apache.geode.cache.asyncqueue.AsyncEventQueue |
getAsyncEventQueue()
Returns the
AsyncEventQueue created by this FactoryBean . |
org.apache.geode.cache.asyncqueue.AsyncEventQueue |
getObject() |
Class<?> |
getObjectType() |
boolean |
isParallelEventQueue() |
boolean |
isPauseEventDispatching() |
boolean |
isSerialEventQueue() |
void |
setAsyncEventListener(org.apache.geode.cache.asyncqueue.AsyncEventListener listener)
Configures the
AsyncEventListener called when AsyncEvents are enqueued into
the AsyncEventQueue created by this FactoryBean . |
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 |
setPauseEventDispatching(Boolean pauseEventDispatching) |
void |
setPersistent(Boolean persistent) |
afterPropertiesSet, getCache, getName, setBeanName, setCache, setFactory, setName
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory
public 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 AsyncEventListener
public org.apache.geode.cache.asyncqueue.AsyncEventQueue getObject() throws Exception
Exception
public Class<?> getObjectType()
protected void doInit()
doInit
in class AbstractWANComponentFactoryBean<org.apache.geode.cache.asyncqueue.AsyncEventQueue>
public void destroy()
destroy
in interface DisposableBean
destroy
in class AbstractWANComponentFactoryBean<org.apache.geode.cache.asyncqueue.AsyncEventQueue>
public final void setAsyncEventListener(org.apache.geode.cache.asyncqueue.AsyncEventListener listener)
AsyncEventListener
called when AsyncEvents
are enqueued into
the AsyncEventQueue
created by this FactoryBean
.listener
- the configured AsyncEventListener
.IllegalStateException
- if the AsyncEventQueue
has already bean created.AsyncEventListener
public org.apache.geode.cache.asyncqueue.AsyncEventListener getAsyncEventListener()
AsyncEventListener
.AsyncEventListener
,
setAsyncEventListener(AsyncEventListener)
public void setAsyncEventQueue(org.apache.geode.cache.asyncqueue.AsyncEventQueue asyncEventQueue)
AsyncEventQueue
returned by this FactoryBean
.asyncEventQueue
- overrides the AsyncEventQueue
returned by this FactoryBean
.AsyncEventQueue
public org.apache.geode.cache.asyncqueue.AsyncEventQueue getAsyncEventQueue()
AsyncEventQueue
created by this FactoryBean
.AsyncEventQueue
created by this FactoryBean
.AsyncEventQueue
public 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.DESTROY
public 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 isParallelEventQueue()
public void setPauseEventDispatching(Boolean pauseEventDispatching)
public boolean isPauseEventDispatching()
public void setPersistent(Boolean persistent)
public boolean isSerialEventQueue()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.