Class SimpleEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class SimpleEvent
    extends java.lang.Object
    implements java.io.Serializable
    A simple event with a timestamp and a sequence number.
    Since:
    Jet 3.2
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleEvent​(long timestamp, long sequence)
      Create an event with the given timestamp and sequence number
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      long sequence()
      Sequence number of the event
      long timestamp()
      Timestamp of the event in milliseconds
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleEvent

        public SimpleEvent​(long timestamp,
                           long sequence)
        Create an event with the given timestamp and sequence number
    • Method Detail

      • timestamp

        public long timestamp()
        Timestamp of the event in milliseconds
      • sequence

        public long sequence()
        Sequence number of the event
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object