Interface EventSubscription<E>

  • Type Parameters:
    E - the event type

    public interface EventSubscription<E>
    A subscription to an event.
    Since:
    1.0.0
    • Method Detail

      • event

        @NotNull
        @NotNull Class<E> event()
        Gets the event type.
        Returns:
        the event type
        Since:
        1.0.0
      • 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