Package io.streamthoughts.azkarra.api
Interface StreamsLifecycleContext
-
- All Known Implementing Classes:
InternalStreamsLifecycleContext
public interface StreamsLifecycleContext
Context about the currentKafkaStreams
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addStateChangeWatcher(KafkaStreamsContainer.StateChangeWatcher watcher)
Register a watcher to be notified ofKafkaStreams.State
change event.String
applicationId()
Getsapplication.id
of the current streams instance.void
setState(State state)
Sets the state of the current streams instance.Conf
streamsConfig()
Gets the configuration of the current streams instance.State
streamsState()
Gets the state value of the current streams instance.org.apache.kafka.streams.TopologyDescription
topologyDescription()
Gets theTopologyDescription
of the current streams instance.String
topologyName()
Version
topologyVersion()
-
-
-
Method Detail
-
applicationId
String applicationId()
Getsapplication.id
of the current streams instance.- Returns:
- return
application.id
of the current streams instance.
-
topologyDescription
org.apache.kafka.streams.TopologyDescription topologyDescription()
Gets theTopologyDescription
of the current streams instance.- Returns:
- the
TopologyDescription
instance; 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
Conf
instance; 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.State
change event.- Parameters:
watcher
- theKafkaStreamsContainer.StateChangeWatcher
to be registered.
-
-