-
- Type Parameters:
E- the event type
public interface EventSubscription<E>A subscription to an event.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull EventConfigconfig()Gets the configuration.voiddispose()Disposes this subscription.@NotNull Class<E>event()Gets the event type.@NotNull EventSubscriber<? super E>subscriber()Gets the subscriber.
-
-
-
Method Detail
-
config
@NotNull @NotNull EventConfig config()
Gets the configuration.- Returns:
- the configuration
- Since:
- 1.0.0
-
subscriber
@NotNull @NotNull EventSubscriber<? super E> subscriber()
Gets the subscriber.- Returns:
- the subscriber
- Since:
- 1.0.0
-
dispose
void dispose()
Disposes this subscription.The subscriber held by this subscription will no longer receive events.
- Since:
- 1.0.0
-
-