Interface SubscribedListener<K,E,O>

Type Parameters:
K - the key type
E - the event type
O - the order type

@NotNullByDefault public interface SubscribedListener<K,E,O>
An interface to hold the subscribed listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    Consumer<? super E>
    Gets the Consumer of this listener.
    Gets the event class of this listener.
    key()
    Gets the key of this listener.
    @UnknownNullability O
    Gets the order of this listener.
  • Method Details

    • key

      K key()
      Gets the key of this listener.
      Returns:
      the key of this listener
    • eventClass

      Class<E> eventClass()
      Gets the event class of this listener.
      Returns:
      the event class of this listener
    • consumer

      Consumer<? super E> consumer()
      Gets the Consumer of this listener.
      Returns:
      the Consumer of this listener
    • order

      @UnknownNullability O order()
      Gets the order of this listener.
      Returns:
      the order of this listener