Module org.refcodes.component
Package org.refcodes.component
Interface Pausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default B
pauseUnchecked()
Pauses the component by callingwithPause()
without you to require catching anPauseException
.B
withPause()
Builder method for thePausable.pause()
method.
-
-
-
Method Detail
-
withPause
B withPause() throws PauseException
Builder method for thePausable.pause()
method.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
PauseException
- Thrown in case pausing fails.
-
pauseUnchecked
default B pauseUnchecked()
Pauses the component by callingwithPause()
without you to require catching anPauseException
.- Returns:
- The instance to be returned on which to apply succeeding builder operations.
- Throws:
PauseException.PauseRuntimeException
- encapsulates the cause and is thrown upon encountering aPauseException
exception
-
-