Class ConfiguredStreamBuilder
java.lang.Object
org.apache.kafka.streams.StreamsBuilder
io.micronaut.configuration.kafka.streams.ConfiguredStreamBuilder
- All Implemented Interfaces:
io.micronaut.core.naming.Named
public class ConfiguredStreamBuilder
extends StreamsBuilder
implements io.micronaut.core.naming.Named
Extended version of
StreamsBuilder that can be configured.- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from class StreamsBuilder
internalStreamsBuilder, internalTopologyBuilder, topology -
Constructor Summary
ConstructorsConstructorDescriptionConfiguredStreamBuilder(Properties configuration) Deprecated.ConfiguredStreamBuilder(Properties configuration, String streamName, Duration closeTimeout) Default constructor. -
Method Summary
Modifier and TypeMethodDescription@NonNull DurationThe timeout to use when closing the stream.@NonNull PropertiesThe configuration.@NonNull StringgetName()The logical name of the stream.Methods inherited from class StreamsBuilder
addGlobalStore, addStateStore, build, build, globalTable, globalTable, globalTable, globalTable, newTopology, stream, stream, stream, stream, stream, stream, table, table, table, table
-
Constructor Details
-
ConfiguredStreamBuilder
Deprecated.Default constructor.- Parameters:
configuration- The configuration
-
ConfiguredStreamBuilder
Default constructor.- Parameters:
configuration- The configurationstreamName- The logical name of the streamcloseTimeout- The time to wait for the stream to shut down
-
-
Method Details
-
getConfiguration
The configuration. Can be mutated.- Returns:
- The configuration
-
getName
The logical name of the stream.- Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Returns:
- the logical name of the stream
-
getCloseTimeout
The timeout to use when closing the stream.- Returns:
- the timeout to use when closing the stream
-
ConfiguredStreamBuilder(Properties, String, Duration)