projects
/
demos
/
kafka
/
chat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: Added success- and failure-callbacks for `ChatHomeService`
[demos/kafka/chat]
/
src
/
main
/
java
/
de
/
juplo
/
kafka
/
chat
/
backend
/
domain
/
ChatRoomData.java
diff --git
a/src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoomData.java
b/src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoomData.java
index
18ca0bf
..
d783eb4
100644
(file)
--- a/
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoomData.java
+++ b/
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoomData.java
@@
-19,7
+19,7
@@
public class ChatRoomData
{
public final static Pattern VALID_USER = Pattern.compile("^[a-z0-9-]{2,}$");
{
public final static Pattern VALID_USER = Pattern.compile("^[a-z0-9-]{2,}$");
- private final Chat
Room
Service service;
+ private final Chat
Message
Service service;
private final Clock clock;
private final int bufferSize;
private Sinks.Many<Message> sink;
private final Clock clock;
private final int bufferSize;
private Sinks.Many<Message> sink;
@@
-27,7
+27,7
@@
public class ChatRoomData
public ChatRoomData(
Clock clock,
public ChatRoomData(
Clock clock,
- Chat
Room
Service service,
+ Chat
Message
Service service,
int bufferSize)
{
log.info("Created ChatRoom with buffer-size {}", bufferSize);
int bufferSize)
{
log.info("Created ChatRoom with buffer-size {}", bufferSize);
@@
-78,7
+78,7
@@
public class ChatRoomData
}
}
- public Chat
Room
Service getChatRoomService()
+ public Chat
Message
Service getChatRoomService()
{
return service;
}
{
return service;
}