private final int bufferSize;
private Sinks.Many<Message> sink;
+
public ChatRoom(
UUID id,
String name,
ChatRoomService service,
int bufferSize)
{
+ log.info("Created ChatRoom {} with buffer-size {}", id, bufferSize);
this.id = id;
this.name = name;
this.clock = clock;
this.service = service;
this.bufferSize = bufferSize;
+ // @RequiredArgsConstructor unfortunately not possible, because
+ // the `bufferSize` is not set, if `createSink()` is called
+ // from the variable declaration!
this.sink = createSink();
}