Class SimpleEvent

java.lang.Object
com.hazelcast.jet.pipeline.test.SimpleEvent
All Implemented Interfaces:
Serializable

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

    • SimpleEvent

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

    • timestamp

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object