Class FanOutRecordPublisherConfiguration
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kinesis.internals.publisher.fanout.FanOutRecordPublisherConfiguration
-
public class FanOutRecordPublisherConfiguration extends Object
This is a configuration class for enhanced fan-out components.
-
-
Constructor Summary
Constructors Constructor Description FanOutRecordPublisherConfiguration(Properties configProps, List<String> streams)Creates a FanOutRecordPublisherConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getConsumerName()Get consumer name, will be null if efo registration type is 'NONE'.longgetDeregisterStreamBaseBackoffMillis()Get base backoff millis for the deregister stream operation.java.time.DurationgetDeregisterStreamConsumerTimeout()Get maximum duration to wait for a stream consumer to deregister before giving up.doublegetDeregisterStreamExpConstant()Get exponential backoff power constant for the deregister stream operation.longgetDeregisterStreamMaxBackoffMillis()Get maximum backoff millis for the deregister stream operation.intgetDeregisterStreamMaxRetries()Get maximum retry attempts for the register stream operation.longgetDescribeStreamBaseBackoffMillis()Get base backoff millis for the describe stream operation.longgetDescribeStreamConsumerBaseBackoffMillis()Get base backoff millis for the describe stream operation.doublegetDescribeStreamConsumerExpConstant()Get exponential backoff power constant for the describe stream operation.longgetDescribeStreamConsumerMaxBackoffMillis()Get maximum backoff millis for the describe stream operation.intgetDescribeStreamConsumerMaxRetries()Get maximum retry attempts for the describe stream operation.doublegetDescribeStreamExpConstant()Get exponential backoff power constant for the describe stream operation.longgetDescribeStreamMaxBackoffMillis()Get maximum backoff millis for the describe stream operation.intgetDescribeStreamMaxRetries()Get maximum retry attempts for the describe stream operation.ConsumerConfigConstants.EFORegistrationTypegetEfoRegistrationType()Get efo registration type.longgetRegisterStreamBaseBackoffMillis()Get base backoff millis for the register stream operation.java.time.DurationgetRegisterStreamConsumerTimeout()Get maximum duration to wait for a stream consumer to become active before giving up.doublegetRegisterStreamExpConstant()Get exponential backoff power constant for the register stream operation.longgetRegisterStreamMaxBackoffMillis()Get maximum backoff millis for the register stream operation.intgetRegisterStreamMaxRetries()Get maximum retry attempts for the register stream operation.Optional<String>getStreamConsumerArn(String stream)Get the according consumer arn to the stream, will be null if efo registration type is 'LAZY' or 'EAGER'.longgetSubscribeToShardBaseBackoffMillis()Get base backoff millis for the subscribe to shard operation.doublegetSubscribeToShardExpConstant()Get exponential backoff power constant for the subscribe to shard operation.longgetSubscribeToShardMaxBackoffMillis()Get maximum backoff millis for the subscribe to shard operation.intgetSubscribeToShardMaxRetries()Get maximum retry attempts for the subscribe to shard operation.java.time.DurationgetSubscribeToShardTimeout()Get timeout when waiting for a shard subscription to be established.
-
-
-
Constructor Detail
-
FanOutRecordPublisherConfiguration
public FanOutRecordPublisherConfiguration(Properties configProps, List<String> streams)
Creates a FanOutRecordPublisherConfiguration.- Parameters:
configProps- the configuration properties from config file.streams- the streams which is sent to match the EFO consumer arn if the EFO registration mode is set to `NONE`.
-
-
Method Detail
-
getSubscribeToShardMaxRetries
public int getSubscribeToShardMaxRetries()
Get maximum retry attempts for the subscribe to shard operation.
-
getSubscribeToShardTimeout
public java.time.Duration getSubscribeToShardTimeout()
Get timeout when waiting for a shard subscription to be established.
-
getSubscribeToShardMaxBackoffMillis
public long getSubscribeToShardMaxBackoffMillis()
Get maximum backoff millis for the subscribe to shard operation.
-
getSubscribeToShardBaseBackoffMillis
public long getSubscribeToShardBaseBackoffMillis()
Get base backoff millis for the subscribe to shard operation.
-
getSubscribeToShardExpConstant
public double getSubscribeToShardExpConstant()
Get exponential backoff power constant for the subscribe to shard operation.
-
getRegisterStreamBaseBackoffMillis
public long getRegisterStreamBaseBackoffMillis()
Get base backoff millis for the register stream operation.
-
getRegisterStreamMaxBackoffMillis
public long getRegisterStreamMaxBackoffMillis()
Get maximum backoff millis for the register stream operation.
-
getRegisterStreamExpConstant
public double getRegisterStreamExpConstant()
Get exponential backoff power constant for the register stream operation.
-
getRegisterStreamMaxRetries
public int getRegisterStreamMaxRetries()
Get maximum retry attempts for the register stream operation.
-
getRegisterStreamConsumerTimeout
public java.time.Duration getRegisterStreamConsumerTimeout()
Get maximum duration to wait for a stream consumer to become active before giving up.
-
getDeregisterStreamBaseBackoffMillis
public long getDeregisterStreamBaseBackoffMillis()
Get base backoff millis for the deregister stream operation.
-
getDeregisterStreamMaxBackoffMillis
public long getDeregisterStreamMaxBackoffMillis()
Get maximum backoff millis for the deregister stream operation.
-
getDeregisterStreamExpConstant
public double getDeregisterStreamExpConstant()
Get exponential backoff power constant for the deregister stream operation.
-
getDeregisterStreamMaxRetries
public int getDeregisterStreamMaxRetries()
Get maximum retry attempts for the register stream operation.
-
getDeregisterStreamConsumerTimeout
public java.time.Duration getDeregisterStreamConsumerTimeout()
Get maximum duration to wait for a stream consumer to deregister before giving up.
-
getDescribeStreamMaxRetries
public int getDescribeStreamMaxRetries()
Get maximum retry attempts for the describe stream operation.
-
getDescribeStreamBaseBackoffMillis
public long getDescribeStreamBaseBackoffMillis()
Get base backoff millis for the describe stream operation.
-
getDescribeStreamMaxBackoffMillis
public long getDescribeStreamMaxBackoffMillis()
Get maximum backoff millis for the describe stream operation.
-
getDescribeStreamExpConstant
public double getDescribeStreamExpConstant()
Get exponential backoff power constant for the describe stream operation.
-
getDescribeStreamConsumerMaxRetries
public int getDescribeStreamConsumerMaxRetries()
Get maximum retry attempts for the describe stream operation.
-
getDescribeStreamConsumerBaseBackoffMillis
public long getDescribeStreamConsumerBaseBackoffMillis()
Get base backoff millis for the describe stream operation.
-
getDescribeStreamConsumerMaxBackoffMillis
public long getDescribeStreamConsumerMaxBackoffMillis()
Get maximum backoff millis for the describe stream operation.
-
getDescribeStreamConsumerExpConstant
public double getDescribeStreamConsumerExpConstant()
Get exponential backoff power constant for the describe stream operation.
-
getEfoRegistrationType
public ConsumerConfigConstants.EFORegistrationType getEfoRegistrationType()
Get efo registration type.
-
getConsumerName
public Optional<String> getConsumerName()
Get consumer name, will be null if efo registration type is 'NONE'.
-
-