Interface DetectorState.Builder

    • Method Detail

      • stateName

        DetectorState.Builder stateName​(String stateName)

        The name of the state.

        Parameters:
        stateName - The name of the state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variables

        DetectorState.Builder variables​(Collection<Variable> variables)

        The current values of the detector's variables.

        Parameters:
        variables - The current values of the detector's variables.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variables

        DetectorState.Builder variables​(Variable... variables)

        The current values of the detector's variables.

        Parameters:
        variables - The current values of the detector's variables.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variables

        DetectorState.Builder variables​(Consumer<Variable.Builder>... variables)

        The current values of the detector's variables.

        This is a convenience method that creates an instance of the Variable.Builder avoiding the need to create one manually via Variable.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #variables(List).

        Parameters:
        variables - a consumer that will call methods on Variable.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #variables(java.util.Collection)
      • timers

        DetectorState.Builder timers​(Collection<Timer> timers)

        The current state of the detector's timers.

        Parameters:
        timers - The current state of the detector's timers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timers

        DetectorState.Builder timers​(Timer... timers)

        The current state of the detector's timers.

        Parameters:
        timers - The current state of the detector's timers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timers

        DetectorState.Builder timers​(Consumer<Timer.Builder>... timers)

        The current state of the detector's timers.

        This is a convenience method that creates an instance of the Timer.Builder avoiding the need to create one manually via Timer.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #timers(List).

        Parameters:
        timers - a consumer that will call methods on Timer.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #timers(java.util.Collection)