X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fkafka%2Fchat%2Fbackend%2Fimplementation%2Finmemory%2FInMemoryServicesConfiguration.java;h=43973ae0a069906a2d7b49aca75d88d81e0a369a;hb=900422dccb5a92fbceac34caa5e614b0d7f05ad7;hp=518cf41b406729ae85a0b7205cd5464fd871c4a6;hpb=dc53848961fd5622f777621fd4140cb01c2c8739;p=demos%2Fkafka%2Fchat diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/inmemory/InMemoryServicesConfiguration.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/inmemory/InMemoryServicesConfiguration.java index 518cf41b..43973ae0 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/inmemory/InMemoryServicesConfiguration.java +++ b/src/main/java/de/juplo/kafka/chat/backend/implementation/inmemory/InMemoryServicesConfiguration.java @@ -26,14 +26,14 @@ public class InMemoryServicesConfiguration name = "sharding-strategy", havingValue = "none", matchIfMissing = true) - ChatHomeService noneShardingChatHome( + SimpleChatHomeService noneShardingChatHome( ChatBackendProperties properties, StorageStrategy storageStrategy, Clock clock) { SimpleChatHomeService chatHomeService = new SimpleChatHomeService( clock, - properties.getChatroomBufferSize()); + properties.getChatroomHistoryLimit()); chatHomeService.restore(storageStrategy).block(); return chatHomeService; } @@ -43,7 +43,7 @@ public class InMemoryServicesConfiguration prefix = "chat.backend.inmemory", name = "sharding-strategy", havingValue = "kafkalike") - ChatHomeService kafkalikeShardingChatHome( + ShardedChatHomeService kafkalikeShardingChatHome( ChatBackendProperties properties, StorageStrategy storageStrategy, Clock clock) @@ -57,7 +57,7 @@ public class InMemoryServicesConfiguration SimpleChatHomeService service = chatHomes[shard] = new SimpleChatHomeService( shard, clock, - properties.getChatroomBufferSize()); + properties.getChatroomHistoryLimit()); service.restore(storageStrategy).block(); }); ShardingStrategy strategy = new KafkaLikeShardingStrategy(numShards);