Interface Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>

Type Parameters:
B - The instance to be returned on which to apply succeeding builder operations.
Enclosing interface:
Stoppable

public static interface Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>
To enable the Stoppable functionality to be invoked in a builder chain.
  • Method Details

    • withStop

      B withStop() throws StopException
      Builder method for the Stoppable.stop() method.
      Returns:
      The instance to be returned on which to apply succeeding builder operations.
      Throws:
      StopException - Thrown in case stopping fails.
    • withStopUnchecked

      default B withStopUnchecked()
      Stops the component by calling withStop() without you to require catching an StopException.
      Returns:
      The instance to be returned on which to apply succeeding builder operations.
      Throws:
      StopException.StopRuntimeException - encapsulates the aCause and is thrown upon encountering a StopException exception