Uses of Class
org.springframework.data.redis.stream.StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder
-
Uses of StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder in org.springframework.data.redis.stream
Modifier and TypeMethodDescriptionStreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.batchSize
(int messagesPerPoll) Configure a batch size for theCOUNT
option during reading.static StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder<String,
MapRecord<String, String, String>> StreamMessageListenerContainer.StreamMessageListenerContainerOptions.builder()
StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.errorHandler
(ErrorHandler errorHandler) Configure aErrorHandler
to be notified onerrors
.StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.executor
(Executor executor) <HK,
HV> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder<K, MapRecord<K, HK, HV>> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.hashKeySerializer
(RedisSerializer<HK> serializer) Configure a hash key serializer.<HK,
HV> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder<K, MapRecord<K, HK, HV>> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.hashValueSerializer
(RedisSerializer<HV> serializer) Configure a hash value serializer.<NK,
NV extends Record<NK, ?>>
StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder<NK,NV> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.keySerializer
(RedisSerializer<NK> serializer) Configure a key serializer.<NV> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder<K,
ObjectRecord<K, NV>> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.objectMapper
(HashMapper<NV, ?, ?> hashMapper) Configure a hash mapper.StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.pollTimeout
(Duration pollTimeout) Configure a poll timeout for theBLOCK
option during reading.StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.serializer
(RedisSerializer<T> serializer) Configure a key, hash key and hash value serializer.<NV> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder<K,
ObjectRecord<K, NV>> StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder.targetType
(Class<NV> targetType) Configure a hash target type.