1 package de.juplo.kafka.chat.backend.persistence.inmemory;
3 import de.juplo.kafka.chat.backend.ChatBackendProperties;
4 import de.juplo.kafka.chat.backend.persistence.StorageStrategy;
5 import org.springframework.context.annotation.Bean;
6 import org.springframework.context.annotation.Configuration;
8 import java.time.Clock;
12 public class InMemoryServicesConfiguration
15 InMemoryChatHomeService chatHomeService(
16 StorageStrategy storageStrategy,
18 ChatBackendProperties properties)
20 return new InMemoryChatHomeService(
21 storageStrategy.read(),
23 properties.getChatroomBufferSize());