|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) @Component public @interface Archive
Marks an event listener as archive event listener. It will be wrapped automatically with
ArchivePollingContainer
.
Template can be provided using EventTemplate
marked on
a general method that returns the template.
TransactionalEvent
Optional Element Summary | |
---|---|
String |
archiveHandler
The name of the bean that is the ArchiveOperationHandler this container will
use. |
boolean |
autoStart
Set whether this container will start once instantiated. |
int |
batchSize
|
int |
concurrentConsumers
Specify the number of concurrent consumers to create. |
String |
gigaSpace
The name of the bean that is the GigaSpace this container will
use. |
int |
maxConcurrentConsumers
Specify the maximum number of concurrent consumers to create. |
boolean |
performSnapshot
If set to true will perform snapshot operation on the provided template
before invoking registering as an event listener. |
long |
receiveTimeout
Set the timeout to use for receive calls, in milliseconds. |
long |
recoveryInterval
|
boolean |
useFifoGrouping
|
String |
value
The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component. |
public abstract String value
public abstract String gigaSpace
GigaSpace
this container will
use.
Note, this is optional. If there is only one GigaSpace
defined in the application context, it will be used.
public abstract int concurrentConsumers
Specifying a higher value for this setting will increase the standard level of scheduled concurrent consumers at runtime: This is effectively the minimum number of concurrent consumers which will be scheduled at any given time. This is a static setting; for dynamic scaling, consider specifying the "maxConcurrentConsumers" setting instead.
Raising the number of concurrent consumers is recommended in order to scale the consumption of events. However, note that any ordering guarantees are lost once multiple consumers are registered. In general, stick with 1 consumer for low-volume events.
SimplePollingEventListenerContainer.setConcurrentConsumers(int)
public abstract int maxConcurrentConsumers
If this setting is higher than "concurrentConsumers", the listener container will dynamically schedule new consumers at runtime, provided that enough incoming messages are encountered. Once the load goes down again, the number of consumers will be reduced to the standard level ("concurrentConsumers") again.
Raising the number of concurrent consumers is recommended in order to scale the consumption of events. However, note that any ordering guarantees are lost once multiple consumers are registered. In general, stick with 1 consumer for low-volume events.
SimplePollingEventListenerContainer.setMaxConcurrentConsumers(int)
public abstract long receiveTimeout
NOTE: This value needs to be smaller than the transaction timeout used by the transaction manager (in the appropriate unit, of course).
AbstractPollingEventListenerContainer.setReceiveTimeout(long)
public abstract boolean performSnapshot
true
will perform snapshot operation on the provided template
before invoking registering as an event listener.
GigaSpace.snapshot(Object)
,
AbstractTemplateEventListenerContainer.setPerformSnapshot(boolean)
public abstract boolean autoStart
Default is true
. Set to false
in order for this container to
be started using AbstractSpaceListeningContainer.start()
.
public abstract long recoveryInterval
SimplePollingEventListenerContainer.setRecoveryInterval(long)
public abstract int batchSize
org.openspaces.archive.ArchivePollingContainer#setBatchSize(Integer)
public abstract String archiveHandler
ArchiveOperationHandler
this container will
use.
Note, this is optional. If there is only one ArchiveOperationHandler
defined in the application context, it will be used.
public abstract boolean useFifoGrouping
ArchivePollingContainer.setUseFifoGrouping(boolean)
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |