feat: implemented a listen-method for the chat-service based on a Flux
[demos/kafka/chat] / src / main / java / de / juplo / kafka / chatroom / domain / Message.java
1 package de.juplo.kafka.chatroom.domain;
2
3 import lombok.EqualsAndHashCode;
4 import lombok.Getter;
5 import lombok.RequiredArgsConstructor;
6 import lombok.ToString;
7
8 import java.time.LocalDateTime;
9 import java.util.UUID;
10
11
12 @RequiredArgsConstructor
13 @Getter
14 @EqualsAndHashCode
15 @ToString
16 public class Message
17 {
18   private final UUID id;
19   private final Long serialNumber;
20   private final LocalDateTime timestamp;
21   private final String user;
22   private final String text;
23 }