Class StreamReceiver.StreamReceiverOptions<K,V extends Record<K,?>>
java.lang.Object
org.springframework.data.redis.stream.StreamReceiver.StreamReceiverOptions<K,V>
- Type Parameters:
K
- Stream key and Stream field type.V
- Stream value type.
- Enclosing interface:
- StreamReceiver<K,
V extends Record<K, ?>>
Options for
StreamReceiver
.-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static <T> StreamReceiver.StreamReceiverOptionsBuilder<String,
ObjectRecord<String, T>> builder
(HashMapper<T, byte[], byte[]> hashMapper) Batch size polling using theCOUNT
option during reads.Timeout for blocking polling using theBLOCK
option during reads.boolean
-
Method Details
-
builder
public static StreamReceiver.StreamReceiverOptionsBuilder<String,MapRecord<String, builder()String, String>> - Returns:
- a new builder for
StreamReceiver.StreamReceiverOptions
.
-
builder
public static <T> StreamReceiver.StreamReceiverOptionsBuilder<String,ObjectRecord<String, builderT>> (HashMapper<T, byte[], byte[]> hashMapper) - Returns:
- a new builder for
StreamReceiver.StreamReceiverOptions
.
-
getPollTimeout
Timeout for blocking polling using theBLOCK
option during reads.- Returns:
- the actual timeout.
-
getBatchSize
Batch size polling using theCOUNT
option during reads.- Returns:
- the batch size.
-
getResumeFunction
-
getKeySerializer
-
getHashKeySerializer
-
getHashValueSerializer
-
getHashMapper
-
getRequiredHashMapper
-
hasHashMapper
public boolean hasHashMapper() -
getTargetType
-