Package io.streamthoughts.azkarra.api
Interface StreamsLifecycleContext
-
- All Known Implementing Classes:
InternalStreamsLifecycleContext
public interface StreamsLifecycleContextContext about the currentKafkaStreamsinstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddStateChangeWatcher(KafkaStreamsContainer.StateChangeWatcher watcher)Register a watcher to be notified ofKafkaStreams.Statechange event.StringapplicationId()Getsapplication.idof the current streams instance.voidsetState(State state)Sets the state of the current streams instance.ConfstreamsConfig()Gets the configuration of the current streams instance.StatestreamsState()Gets the state value of the current streams instance.org.apache.kafka.streams.TopologyDescriptiontopologyDescription()Gets theTopologyDescriptionof the current streams instance.StringtopologyName()VersiontopologyVersion()
-
-
-
Method Detail
-
applicationId
String applicationId()
Getsapplication.idof the current streams instance.- Returns:
- return
application.idof the current streams instance.
-
topologyDescription
org.apache.kafka.streams.TopologyDescription topologyDescription()
Gets theTopologyDescriptionof the current streams instance.- Returns:
- the
TopologyDescriptioninstance; cannot benull.
-
topologyName
String topologyName()
- Returns:
- the user-specified name for the streams.
-
topologyVersion
Version topologyVersion()
- Returns:
- the version of the streams topology.
-
streamsConfig
Conf streamsConfig()
Gets the configuration of the current streams instance.- Returns:
- the
Confinstance; cannot benull.
-
streamsState
State streamsState()
Gets the state value of the current streams instance.- Returns:
- the
State; cannot benull.
-
setState
void setState(State state)
Sets the state of the current streams instance.- Parameters:
state- the newState.
-
addStateChangeWatcher
void addStateChangeWatcher(KafkaStreamsContainer.StateChangeWatcher watcher)
Register a watcher to be notified ofKafkaStreams.Statechange event.- Parameters:
watcher- theKafkaStreamsContainer.StateChangeWatcherto be registered.
-
-