Interface DoubleEventType<T,E>

All Known Implementing Classes:
DoubleEventTypeImpl

public interface DoubleEventType<T,E>
Since:
3/7/19.
Author:
amy
  • Method Summary

    Modifier and Type
    Method
    Description
    key()
    Key used in the event bus.
     
    org.apache.commons.lang3.tuple.Pair<Class<T>,Class<E>>
    Classes sent in the event payload.
     
  • Method Details

    • key

      @Nonnull @CheckReturnValue String key()
      Key used in the event bus.
      Returns:
      Key where this event is fired in the bus.
    • left

      @Nonnull @CheckReturnValue Class<T> left()
      Returns:
      The "left side" of this event. Is the first event that the consumer must handle.
    • right

      @Nonnull @CheckReturnValue Class<E> right()
      Returns:
      The "right side" of this event. Is the second event that the consumer must handle.
    • payloadClasses

      @Nonnull @CheckReturnValue org.apache.commons.lang3.tuple.Pair<Class<T>,Class<E>> payloadClasses()
      Classes sent in the event payload.
      Returns:
      A Pair of the classes that this event fires, in order.