Annotation Interface AllowReplay
@Documented
@Target({ANNOTATION_TYPE,TYPE,METHOD})
@Retention(RUNTIME)
@HasHandlerAttributes
public @interface AllowReplay
Annotation marking a Handler (or class) as being capable of handling replays, or not, depending on the value passed.
When placed on the type (class) level, the setting applies to all handlers that don't explicitly override it on the method level.
Marking methods as not allowing replay will not change the routing of a message (i.e. will not invoke another handler method). Messages that would otherwise be handled by such handler are simply ignored.
- Since:
- 3.2
- Author:
- Allard Buijze
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether to allow replays on this handler, or not.
-
Element Details
-
value
boolean valueWhether to allow replays on this handler, or not. Defaults totrue- Returns:
- Whether to allow replays on this handler, or not
- Default:
true
-