- All Known Subinterfaces:
ComponentComposite
,ComponentComposite.ExtendedComponentComposite<CTX,
,CON> ConfigurableLifecycleComponent<CTX>
,ConfigurableLifecycleComponent.ConfigurableLifecycleAutomaton<CTX>
,LifecycleComponent
,LifecycleComponent.LifecycleAutomaton
,LifecycleComponent.UncheckedLifecycleComponent
,Pausable.PauseAutomaton
,Pausable.UncheckedPausable
- All Known Implementing Classes:
AbstractComponentComposite
,AbstractComponentComposite.ExtendedCompositeComponentImpl
,ConfigurableLifecycleAutomatonImpl
,LifecycleMachine
,LifecycleMachine.ManualLifecycleMachine
public interface Pausable
This mixin might be implemented by a component in order to provide pause
facilities.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
ThePausable.PauseAutomaton
interface defines those methods related to the pause life-cycle.static interface
Pausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>
To enable thePausable
functionality to be invoked in a builder chain.static interface
SeePausable
without any checked exception being declared. -
Method Summary
Modifier and TypeMethodDescriptionvoid
pause()
Pauses the component.default void
Pauses the component by callingpause()
without you to require catching anPauseException
.
-
Method Details
-
pause
Pauses the component.- Throws:
PauseException
- in case pausing fails.
-
pauseUnchecked
default void pauseUnchecked()Pauses the component by callingpause()
without you to require catching anPauseException
.- Throws:
PauseException.PauseRuntimeException
- encapsulates the aCause and is thrown upon encountering aPauseException
exception
-