Interface StreamsLifecycleContext

  • All Known Implementing Classes:
    InternalStreamsLifecycleContext

    public interface StreamsLifecycleContext
    Context about the current KafkaStreams instance.
    • Method Detail

      • applicationId

        String applicationId()
        Gets application.id of the current streams instance.
        Returns:
        return application.id of the current streams instance.
      • topologyDescription

        org.apache.kafka.streams.TopologyDescription topologyDescription()
        Gets the TopologyDescription of the current streams instance.
        Returns:
        the TopologyDescription instance; cannot be null.
      • 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 be null.
      • streamsState

        State streamsState()
        Gets the state value of the current streams instance.
        Returns:
        the State; cannot be null.
      • setState

        void setState​(State state)
        Sets the state of the current streams instance.
        Parameters:
        state - the new State.