1 package com.atlassian.event.internal;
2
3 /**
4 * An interface to resolve whether an event can be handled asynchronously or not.
5 *
6 * @since 2.0
7 */
8 public interface AsynchronousEventResolver {
9 /**
10 * Tells whether the event can be handled asynchronously or not
11 *
12 * @param event the event to check
13 * @return {@code true} if the event can be handled asynchronously, {@code false} otherwise.
14 * @throws NullPointerException if the event is {@code null}
15 */
16 boolean isAsynchronousEvent(Object event);
17 }