Class ConfigurableWordCountTopology
- java.lang.Object
-
- io.streamthoughts.examples.azkarra.topology.ConfigurableWordCountTopology
-
- All Implemented Interfaces:
Versioned
,Configurable
,Provider<org.apache.kafka.streams.Topology>
,TopologyProvider
@Component @TopologyInfo(description="A configurable WordCount topology example") public class ConfigurableWordCountTopology extends Object implements TopologyProvider, Configurable
A basic WordCount topology.
-
-
Constructor Summary
Constructors Constructor Description ConfigurableWordCountTopology()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Conf configuration)
Configures this instance with the specifiedConf
.org.apache.kafka.streams.Topology
get()
Supplies a new Kafka StreamsTopology
instance.String
version()
Returns the version for thisTopology
.
-
-
-
Method Detail
-
version
public String version()
Description copied from interface:TopologyProvider
Returns the version for thisTopology
.- Specified by:
version
in interfaceTopologyProvider
- Specified by:
version
in interfaceVersioned
- Returns:
- the string version.
-
configure
public void configure(Conf configuration)
Description copied from interface:Configurable
Configures this instance with the specifiedConf
.- Specified by:
configure
in interfaceConfigurable
- Parameters:
configuration
- theConf
instance used to configure this instance.
-
get
public org.apache.kafka.streams.Topology get()
Description copied from interface:TopologyProvider
Supplies a new Kafka StreamsTopology
instance.- Specified by:
get
in interfaceProvider<org.apache.kafka.streams.Topology>
- Specified by:
get
in interfaceTopologyProvider
- Returns:
- the
Topology
instance.
-
-