Update apache-kafka-2/src/main/java/com/baeldung/kafka/message/ordering/payload/UserEvent.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
41ab2ed221
commit
0399cf0e5f
@ -6,11 +6,11 @@ public class UserEvent implements Comparable<UserEvent> {
|
|||||||
private long eventNanoTime;
|
private long eventNanoTime;
|
||||||
private long globalSequenceNumber;
|
private long globalSequenceNumber;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public UserEvent(){
|
public UserEvent(){
|
||||||
|
// Required for Jackson Serialization and Deserialization
|
||||||
}
|
}
|
||||||
|
|
||||||
//Required for Kafka Serialization and Deserialization
|
|
||||||
public UserEvent(String userEventId) {
|
public UserEvent(String userEventId) {
|
||||||
this.userEventId = userEventId;
|
this.userEventId = userEventId;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user