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 Details

    • isAsynchronousEvent

      public boolean isAsynchronousEvent(@Nonnull Object event)
      Description copied from interface: AsynchronousEventResolver
      Tells whether the event can be handled asynchronously or not
      Specified by:
      isAsynchronousEvent in interface AsynchronousEventResolver
      Parameters:
      event - the event to check
      Returns:
      true if the event can be handled asynchronously, false otherwise.