Class StreamMessageListenerContainer.StreamMessageListenerContainerOptions<K,V extends Record<K,?>>
java.lang.Object
org.springframework.data.redis.stream.StreamMessageListenerContainer.StreamMessageListenerContainerOptions<K,V>
- Type Parameters:
K
- Stream key and Stream field type.V
- Stream value type.
- Enclosing interface:
- StreamMessageListenerContainer<K,
V extends Record<K, ?>>
public static class StreamMessageListenerContainer.StreamMessageListenerContainerOptions<K,V extends Record<K,?>>
extends Object
Options for
StreamMessageListenerContainer
.-
Method Summary
-
Method Details
-
builder
public static StreamMessageListenerContainer.StreamMessageListenerContainerOptionsBuilder<String,MapRecord<String, builder()String, String>> - Returns:
- a new builder for
StreamMessageListenerContainer.StreamMessageListenerContainerOptions
.
-
getPollTimeout
Timeout for blocking polling using theBLOCK
option during reads.- Returns:
- the timeout.
-
getBatchSize
Batch size polling using theCOUNT
option during reads.- Returns:
- the batch size.
-
getKeySerializer
-
getHashKeySerializer
-
getHashValueSerializer
-
getHashMapper
-
getRequiredHashMapper
-
hasHashMapper
public boolean hasHashMapper() -
getTargetType
-
getErrorHandler
- Returns:
- the default
ErrorHandler
.
-
getExecutor
- Returns:
- the
Executor
to run stream pollingTask
s. Defaults toSimpleAsyncTaskExecutor
.
-