Annotation Interface AsyncPolling


@Target(TYPE) @Retention(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.

Author:
kimchy
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Set whether this container will start once instantiated.
    int
    Specify the number of concurrent consumers to create.
    The name of the bean that is the GigaSpace this container will use.
    boolean
    If set to true will perform prepareTemplate operation on the provided template before invoking registering as an event listener.
    long
    Set the timeout to use for receive calls, in milliseconds.
    The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component.
  • Element Details

    • value

      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.
      Returns:
      the suggested component name, if any
      Default:
      ""
    • gigaSpace

      String gigaSpace
      The name of the bean that is the GigaSpace this container will use.

      Note, this is optional. If there is only one GigaSpace defined in the application context, it will be used.

      Default:
      ""
    • concurrentConsumers

      int concurrentConsumers
      Specify the number of concurrent consumers to create. Default is 1.
      See Also:
      Default:
      1
    • receiveTimeout

      long receiveTimeout
      Set the timeout to use for receive calls, in milliseconds. The default is 60000 ms, that is, 1 minute.

      NOTE: This value needs to be smaller than the transaction timeout used by the transaction manager (in the appropriate unit, of course).

      See Also:
      Default:
      60000L
    • performSnapshot

      boolean performSnapshot
      If set to true will perform prepareTemplate operation on the provided template before invoking registering as an event listener.
      See Also:
      Default:
      true
    • autoStart

      boolean autoStart
      Set whether this container will start once instantiated.

      Default is true. Set to false in order for this container to be started using AbstractEventListenerContainer.start().

      Default:
      true