Class KafkaStreamsExtensionOptions

  • All Implemented Interfaces:
    org.creekservice.api.kafka.extension.ClientsExtensionOptions, org.creekservice.api.service.extension.CreekExtensionOptions

    public final class KafkaStreamsExtensionOptions
    extends java.lang.Object
    implements org.creekservice.api.kafka.extension.ClientsExtensionOptions
    Options for the Kafka client extension.
    • Field Detail

      • DEFAULT_STREAMS_CLOSE_TIMEOUT

        public static final java.time.Duration DEFAULT_STREAMS_CLOSE_TIMEOUT
        Default stream close timeout.
    • Method Detail

      • propertiesBuilder

        public org.creekservice.api.kafka.extension.config.ClustersProperties.Builder propertiesBuilder()
        Specified by:
        propertiesBuilder in interface org.creekservice.api.kafka.extension.ClientsExtensionOptions
      • topicClient

        public java.util.Optional<org.creekservice.api.kafka.extension.client.TopicClient> topicClient()
        Specified by:
        topicClient in interface org.creekservice.api.kafka.extension.ClientsExtensionOptions
      • streamsCloseTimeout

        public java.time.Duration streamsCloseTimeout()
        Returns:
        the timeout used when closing the stream app.
      • lifecycleObserver

        public LifecycleObserver lifecycleObserver()
        Returns:
        the observer that will be invoked as the stream app changes state.
      • restoreObserver

        public StateRestoreObserver restoreObserver()
        Returns:
        the observer that will be invoked as the stream app restored its state.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object