public final class EventSubscription<E extends Event> extends java.lang.Object implements EventListener<E>, java.lang.Comparable<EventSubscription<E>>
EventListener.Sync<E extends Event>| Constructor and Description |
|---|
EventSubscription(EventBus bus,
EventNamespace namespace,
EventPriority priority,
java.lang.Class<E> type,
EventListener<E> listener,
boolean ignoreCancelled) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EventSubscription<E> o) |
EventBus |
getBus() |
EventNamespace |
getNamespace() |
EventPriority |
getPriority() |
java.lang.Class<E> |
getType() |
void |
handle(E event) |
void |
unsubscribe() |
public EventSubscription(EventBus bus, EventNamespace namespace, EventPriority priority, java.lang.Class<E> type, EventListener<E> listener, boolean ignoreCancelled)
public EventPriority getPriority()
public EventBus getBus()
public EventNamespace getNamespace()
public java.lang.Class<E> getType()
public void unsubscribe()
public void handle(E event)
handle in interface EventListener<E extends Event>public int compareTo(EventSubscription<E> o)
compareTo in interface java.lang.Comparable<EventSubscription<E extends Event>>