|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) @Component public @interface AsyncPolling
Marks an event listener an asyncronous polled event listener. It will be wrapped automtically with
SimpleAsyncPollingEventListenerContainer
.
Template can be provided using EventTemplate
marked on
a general method that returns the template.
The event listener method should be marked with SpaceDataEvent
.
TransactionalEvent
,
AsyncHandler
Optional Element Summary | |
---|---|
boolean |
autoStart
Set whether this container will start once instantiated. |
int |
concurrentConsumers
Specify the number of concurrent consumers to create. |
String |
gigaSpace
The name of the bean that that is the GigaSpace this container will
used. |
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. |
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
used.
Note, this is optional. If there is only one GigaSpace
defined in the application context, it will be used.
public abstract int concurrentConsumers
SimpleAsyncPollingEventListenerContainer.setConcurrentConsumers(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()
.
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |