Package org.refcodes.component
Interface Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BwithStop()Builder method for theStoppable.stop()method.default BwithStopUnchecked()Stops the component by callingwithStop()without you to require catching anStopException.
-
-
-
Method Detail
-
withStop
B withStop() throws StopException
Builder method for theStoppable.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 callingwithStop()without you to require catching anStopException.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
StopException.StopRuntimeException- encapsulates the cause and is thrown upon encountering aStopExceptionexception
-
-