@Bean
Producer<Integer, ChatRoomTo> chatRoomChannelProducer(
- Map<String, String> defaultProducerProperties,
+ Map<String, Object> defaultProducerProperties,
IntegerSerializer integerSerializer,
JsonSerializer<ChatRoomTo> chatRoomSerializer)
{
@Bean
Consumer<Integer, ChatRoomTo> chatRoomChannelConsumer(
- Map<String, String> defaultConsumerProperties,
+ Map<String, Object> defaultConsumerProperties,
IntegerDeserializer integerDeserializer,
JsonDeserializer<ChatRoomTo> chatRoomDeserializer)
{
- Map<String, String> properties = new HashMap<>();
+ Map<String, Object> properties = new HashMap<>(defaultConsumerProperties);
properties.put(
ConsumerConfig.GROUP_ID_CONFIG,
"chat_room_channel");
@Bean
Producer<String, MessageTo> chatMessageChannelProducer(
- Map<String, String> defaultProducerProperties,
+ Map<String, Object> defaultProducerProperties,
StringSerializer stringSerializer,
JsonSerializer<MessageTo> messageSerializer)
{
@Bean
Consumer<String, MessageTo> chatMessageChannelConsumer(
- Map<String, String> defaultConsumerProperties,
+ Map<String, Object> defaultConsumerProperties,
StringDeserializer stringDeserializer,
JsonDeserializer<MessageTo> messageDeserializer)
{
- Map<String, String> properties = new HashMap<>();
+ Map<String, Object> properties = new HashMap<>(defaultConsumerProperties);
properties.put(
ConsumerConfig.GROUP_ID_CONFIG,
"chat_message_channel");
}
@Bean
- Map<String, String> defaultProducerProperties(ChatBackendProperties chatBackendProperties)
+ Map<String, Object> defaultProducerProperties(ChatBackendProperties chatBackendProperties)
{
return Map.of(
ProducerConfig.CLIENT_ID_CONFIG,
}
@Bean
- Map<String, String> defaultConsumerProperties(ChatBackendProperties chatBackendProperties)
+ Map<String, Object> defaultConsumerProperties(ChatBackendProperties chatBackendProperties)
{
return Map.of(
ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG,