Class KafkaStreamsExtensionOptions
- java.lang.Object
-
- org.creekservice.api.kafka.streams.extension.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KafkaStreamsExtensionOptions.Builder
Builder of streams options.
-
Field Summary
Fields Modifier and Type Field Description static java.time.Duration
DEFAULT_STREAMS_CLOSE_TIMEOUT
Default stream close timeout.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KafkaStreamsExtensionOptions.Builder
builder()
boolean
equals(java.lang.Object o)
int
hashCode()
LifecycleObserver
lifecycleObserver()
KafkaMetricsPublisherOptions
metricsPublishing()
org.creekservice.api.kafka.extension.config.ClustersProperties.Builder
propertiesBuilder()
StateRestoreObserver
restoreObserver()
java.time.Duration
streamsCloseTimeout()
java.util.Optional<org.creekservice.api.kafka.extension.client.TopicClient>
topicClient()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static KafkaStreamsExtensionOptions.Builder builder()
- Returns:
- new builder.
-
propertiesBuilder
public org.creekservice.api.kafka.extension.config.ClustersProperties.Builder propertiesBuilder()
- Specified by:
propertiesBuilder
in interfaceorg.creekservice.api.kafka.extension.ClientsExtensionOptions
-
topicClient
public java.util.Optional<org.creekservice.api.kafka.extension.client.TopicClient> topicClient()
- Specified by:
topicClient
in interfaceorg.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.
-
metricsPublishing
public KafkaMetricsPublisherOptions metricsPublishing()
- Returns:
- metrics publishing options
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-