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
.- Since:
- 2.2
- Author:
- Mark Paluch, Eddie McDaniel
- See Also:
-
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.@Nullable HashMapper
<Object, Object, Object> Timeout for blocking polling using theBLOCK
option during reads.boolean
-
Method Details
-
builder
public static StreamReceiver.StreamReceiverOptionsBuilder<String, MapRecord<String,String, builder()String>> - Returns:
- a new builder for
StreamReceiver.StreamReceiverOptions
.
-
builder
public static <T> StreamReceiver.StreamReceiverOptionsBuilder<String, ObjectRecord<String,T>> builder(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
-