Class FanOutRecordPublisherConfiguration


  • public class FanOutRecordPublisherConfiguration
    extends Object
    This is a configuration class for enhanced fan-out components.
    • 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.
      • getConsumerName

        public Optional<String> getConsumerName()
        Get consumer name, will be null if efo registration type is 'NONE'.
      • getStreamConsumerArn

        public Optional<String> getStreamConsumerArn​(String stream)
        Get the according consumer arn to the stream, will be null if efo registration type is 'LAZY' or 'EAGER'.