Class StreamConfig

  • Direct Known Subclasses:
    PartitionLevelStreamConfig

    public class StreamConfig
    extends Object
    Provides all the configs related to the stream as configured in the table config
    • Field Detail

      • DEFAULT_FLUSH_THRESHOLD_ROWS

        public static final int DEFAULT_FLUSH_THRESHOLD_ROWS
        See Also:
        Constant Field Values
      • DEFAULT_FLUSH_THRESHOLD_TIME_MILLIS

        public static final long DEFAULT_FLUSH_THRESHOLD_TIME_MILLIS
      • DEFAULT_FLUSH_THRESHOLD_SEGMENT_SIZE_BYTES

        public static final long DEFAULT_FLUSH_THRESHOLD_SEGMENT_SIZE_BYTES
        See Also:
        Constant Field Values
      • DEFAULT_FLUSH_AUTOTUNE_INITIAL_ROWS

        public static final int DEFAULT_FLUSH_AUTOTUNE_INITIAL_ROWS
        See Also:
        Constant Field Values
      • DEFAULT_CONSUMER_FACTORY_CLASS_NAME_STRING

        public static final String DEFAULT_CONSUMER_FACTORY_CLASS_NAME_STRING
        See Also:
        Constant Field Values
      • DEFAULT_STREAM_CONNECTION_TIMEOUT_MILLIS

        public static final long DEFAULT_STREAM_CONNECTION_TIMEOUT_MILLIS
        See Also:
        Constant Field Values
      • DEFAULT_STREAM_FETCH_TIMEOUT_MILLIS

        public static final int DEFAULT_STREAM_FETCH_TIMEOUT_MILLIS
        See Also:
        Constant Field Values
      • DEFAULT_IDLE_TIMEOUT_MILLIS

        public static final int DEFAULT_IDLE_TIMEOUT_MILLIS
        See Also:
        Constant Field Values
    • Constructor Detail

      • StreamConfig

        public StreamConfig​(String tableNameWithType,
                            Map<String,​String> streamConfigMap)
        Initializes a StreamConfig using the map of stream configs from the table config
    • Method Detail

      • extractFlushThresholdRows

        protected int extractFlushThresholdRows​(Map<String,​String> streamConfigMap)
      • extractFlushThresholdTimeMillis

        protected long extractFlushThresholdTimeMillis​(Map<String,​String> streamConfigMap)
      • getType

        public String getType()
      • getTopicName

        public String getTopicName()
      • hasHighLevelConsumerType

        public boolean hasHighLevelConsumerType()
      • hasLowLevelConsumerType

        public boolean hasLowLevelConsumerType()
      • getConsumerFactoryClassName

        public String getConsumerFactoryClassName()
      • setOffsetCriteria

        public void setOffsetCriteria​(OffsetCriteria offsetCriteria)
      • getDecoderClass

        public String getDecoderClass()
      • getDecoderProperties

        public Map<String,​String> getDecoderProperties()
      • getConnectionTimeoutMillis

        public long getConnectionTimeoutMillis()
      • getFetchTimeoutMillis

        public int getFetchTimeoutMillis()
      • getIdleTimeoutMillis

        public long getIdleTimeoutMillis()
      • getFlushThresholdRows

        public int getFlushThresholdRows()
      • getFlushThresholdTimeMillis

        public long getFlushThresholdTimeMillis()
      • getFlushThresholdSegmentSizeBytes

        public long getFlushThresholdSegmentSizeBytes()
      • getFlushAutotuneInitialRows

        public int getFlushAutotuneInitialRows()
      • getGroupId

        public String getGroupId()
      • getTopicConsumptionRateLimit

        public Optional<Double> getTopicConsumptionRateLimit()
      • getTableNameWithType

        public String getTableNameWithType()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object