Package com.atlassian.event.internal
Class AnnotationAsynchronousEventResolver
java.lang.Object
com.atlassian.event.internal.AnnotationAsynchronousEventResolver
- All Implemented Interfaces:
AsynchronousEventResolver
public final class AnnotationAsynchronousEventResolver
extends Object
implements AsynchronousEventResolver
Annotation based
AsynchronousEventResolver. This will check whether the event is annotated with the given
annotation.
The default annotation used is AsynchronousPreferred
- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisAsynchronousEvent(Object event) Tells whether the event can be handled asynchronously or not
-
Method Details
-
isAsynchronousEvent
Description copied from interface:AsynchronousEventResolverTells whether the event can be handled asynchronously or not- Specified by:
isAsynchronousEventin interfaceAsynchronousEventResolver- Parameters:
event- the event to check- Returns:
trueif the event can be handled asynchronously,falseotherwise.
-