org.axonframework.eventhandling.annotation
Annotation Type AsynchronousEventListener


@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface AsynchronousEventListener

Annotation that marks a class as an Asynchronous EventListener. Postprocessors will detect this bean and wrap it with a suitable AsynchronousEventHandlerWrapper. This type-level annotation allows the definition of the concurrency policy for this EventListener.

This annotation allows the configuration of any arbitrary class, as long as it implements the EventSequencingPolicy interface. It also needs to have (at least) a no-arg constructor.

Since:
0.3
Author:
Allard Buijze

Optional Element Summary
 Class<? extends EventSequencingPolicy> sequencingPolicyClass
          Defines the policy type to use for event handling sequencing.
 

sequencingPolicyClass

public abstract Class<? extends EventSequencingPolicy> sequencingPolicyClass
Defines the policy type to use for event handling sequencing. The provided class must implement EventSequencingPolicy and provide an accessible no-arg constructor.

Default:
org.axonframework.eventhandling.SequentialPolicy.class


Copyright © 2011. All Rights Reserved.