Interface Event<T,S>

All Known Implementing Classes:
AbstractEvent

public interface Event<T,S>
Abstraction of an of a time-stamped event pertaining to an arbitrary subject.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the subject of the event.
    long
    Returns the timestamp of when the event occurred, given in milliseconds since the start of epoch.
    Returns the type of the event.
  • Method Details

    • time

      long time()
      Returns the timestamp of when the event occurred, given in milliseconds since the start of epoch.
      Returns:
      timestamp in milliseconds
    • type

      T type()
      Returns the type of the event.
      Returns:
      event type
    • subject

      S subject()
      Returns the subject of the event.
      Returns:
      subject to which this event pertains