refactor: Fixed return-types of the controller
[demos/kafka/chat] / src / main / java / de / juplo / kafka / chat / backend / domain / Chatroom.java
index c05fda0..8f4a797 100644 (file)
@@ -44,6 +44,11 @@ public class Chatroom
     return sink.asFlux();
   }
 
+  public Flux<Message> getMessages()
+  {
+    return getMessages(0, Long.MAX_VALUE);
+  }
+
   public Flux<Message> getMessages(long first, long last)
   {
     return persistence.getMessages(first, last);