net.mostlyoriginal.api.event.common.Subscribe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contrib-eventbus Show documentation
Show all versions of contrib-eventbus Show documentation
Drop-in low throughput synchronous immediate delivery eventbus for artemis-odb.
package net.mostlyoriginal.api.event.common;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Denote method as an event listener.
*
* Event managers are required to have an event tag.
*
* @author Daan van Yperen
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Subscribe {
/**
* Listeners with higher priority get precedence over listeners with lower priority.
*/
public int priority() default 0;
/**
* Do not receive cancelled events?
*/
boolean ignoreCancelledEvents() default false;
}