projects
/
demos
/
kafka
/
chat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NG
[demos/kafka/chat]
/
src
/
main
/
java
/
de
/
juplo
/
kafka
/
chat
/
backend
/
persistence
/
StorageStrategy.java
diff --git
a/src/main/java/de/juplo/kafka/chat/backend/persistence/StorageStrategy.java
b/src/main/java/de/juplo/kafka/chat/backend/persistence/StorageStrategy.java
index
38a9e98
..
3807680
100644
(file)
--- a/
src/main/java/de/juplo/kafka/chat/backend/persistence/StorageStrategy.java
+++ b/
src/main/java/de/juplo/kafka/chat/backend/persistence/StorageStrategy.java
@@
-1,15
+1,12
@@
package de.juplo.kafka.chat.backend.persistence;
package de.juplo.kafka.chat.backend.persistence;
-import de.juplo.kafka.chat.backend.api.ChatroomTo;
-import de.juplo.kafka.chat.backend.domain.Chatroom;
-import de.juplo.kafka.chat.backend.domain.Message;
+import de.juplo.kafka.chat.backend.domain.ChatRoom;
+import de.juplo.kafka.chat.backend.domain.ChatRoomInfo;
import reactor.core.publisher.Flux;
public interface StorageStrategy
{
import reactor.core.publisher.Flux;
public interface StorageStrategy
{
- void writeChatrooms(Flux<Chatroom> chatroomFlux);
- Flux<Chatroom> readChatrooms();
- void writeMessages(ChatroomTo chatroomTo, Flux<Message> messageFlux);
- Flux<Message> readMessages(ChatroomTo chatroomTo);
+ void write(Flux<ChatRoomInfo> chatroomFlux);
+ Flux<ChatRoom> read();
}
}