Package com.hazelcast.jet.pipeline.test
Class SimpleEvent
- java.lang.Object
-
- com.hazelcast.jet.pipeline.test.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 eventlong
timestamp()
Timestamp of the event in millisecondsjava.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-