K
- Stream key and Stream field type.V
- Stream value type.public static class StreamReceiver.StreamReceiverOptions<K,V extends Record<K,?>> extends Object
StreamReceiver
.Modifier and Type | Method and Description |
---|---|
static StreamReceiver.StreamReceiverOptionsBuilder<String,MapRecord<String,String,String>> |
builder() |
static <T> StreamReceiver.StreamReceiverOptionsBuilder<String,ObjectRecord<String,T>> |
builder(HashMapper<T,byte[],byte[]> hashMapper) |
OptionalInt |
getBatchSize()
Batch size polling using the
COUNT option during reads. |
RedisSerializationContext.SerializationPair<Object> |
getHashKeySerializer() |
HashMapper<Object,Object,Object> |
getHashMapper() |
RedisSerializationContext.SerializationPair<Object> |
getHashValueSerializer() |
RedisSerializationContext.SerializationPair<K> |
getKeySerializer() |
Duration |
getPollTimeout()
Timeout for blocking polling using the
BLOCK option during reads. |
HashMapper<Object,Object,Object> |
getRequiredHashMapper() |
Function<? super Throwable,? extends org.reactivestreams.Publisher<Void>> |
getResumeFunction() |
Class<Object> |
getTargetType() |
boolean |
hasHashMapper() |
public static StreamReceiver.StreamReceiverOptionsBuilder<String,MapRecord<String,String,String>> builder()
StreamReceiver.StreamReceiverOptions
.public static <T> StreamReceiver.StreamReceiverOptionsBuilder<String,ObjectRecord<String,T>> builder(HashMapper<T,byte[],byte[]> hashMapper)
StreamReceiver.StreamReceiverOptions
.public Duration getPollTimeout()
BLOCK
option during reads.public OptionalInt getBatchSize()
COUNT
option during reads.public Function<? super Throwable,? extends org.reactivestreams.Publisher<Void>> getResumeFunction()
public RedisSerializationContext.SerializationPair<K> getKeySerializer()
public RedisSerializationContext.SerializationPair<Object> getHashKeySerializer()
public RedisSerializationContext.SerializationPair<Object> getHashValueSerializer()
@Nullable public HashMapper<Object,Object,Object> getHashMapper()
public HashMapper<Object,Object,Object> getRequiredHashMapper()
public boolean hasHashMapper()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.