1 package com.atlassian.event.api;
2
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.Target;
6
7 import static java.lang.annotation.ElementType.TYPE;
8 import static java.lang.annotation.RetentionPolicy.RUNTIME;
9
10 /**
11 * <p>Annotation to be used with events to tell whether they can be handled asynchronously</p>
12 * <p>This is the default annotation to be used with {@link com.atlassian.event.internal.AnnotationAsynchronousEventResolver}</p>
13 *
14 * @see com.atlassian.event.internal.AnnotationAsynchronousEventResolver
15 * @since 2.0
16 */
17 @Retention(RUNTIME)
18 @Target(TYPE)
19 @Documented
20 public @interface AsynchronousPreferred {
21 }