8ba23f3c5ffd31af10198b00a315fa4beca7716c
[demos/kafka/chat] /
1 package de.juplo.kafka.chat.backend.implementation.kafka.messages.info;
2
3 import de.juplo.kafka.chat.backend.implementation.kafka.messages.AbstractMessageTo;
4 import lombok.EqualsAndHashCode;
5 import lombok.Getter;
6 import lombok.Setter;
7 import lombok.ToString;
8
9
10 @Getter
11 @Setter
12 @EqualsAndHashCode
13 @ToString
14 public class EventShardAssigned extends AbstractMessageTo
15 {
16   private int shard;
17   private String uri;
18
19
20   public EventShardAssigned()
21   {
22     super(ToType.EVENT_SHARD_ASSIGNED);
23   }
24
25
26   public static EventShardAssigned of(
27       int shard,
28       String uri)
29   {
30     EventShardAssigned event = new EventShardAssigned();
31     event.setShard(shard);
32     event.setUri(uri);
33     return event;
34   }
35 }