Package org.refcodes.component
Interface Pausable
-
- All Known Subinterfaces:
CompositeComponent
,CompositeComponent.ExtendedCompositeComponent<CTX,CON>
,ConfigurableLifeCycleComponent<CTX>
,ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton<CTX>
,LifeCycleComponent
,LifeCycleComponent.LifeCycleAutomaton
,LifeCycleComponent.UncheckedLifeCycleComponent
,Pausable.PauseAutomaton
,Pausable.UncheckedPausable
- All Known Implementing Classes:
CompositeComponentImpl
,CompositeComponentImpl.ExtendedCompositeComponentImpl
,ConfigurableLifeCycleAutomatonImpl
,LifeCycleAutomatonImpl
,LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
public interface Pausable
This mixin might be implemented by a component in order to provide pause facilities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Pausable.PauseAutomaton
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
Pausable.UncheckedPausable
SeePausable
without any checked exception being declared.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
pause()
Pauses the component.default void
pauseUnchecked()
Pauses the component by callingpause()
without you to require catching anPauseException
.
-
-
-
Method Detail
-
pause
void pause() throws PauseException
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 cause and is thrown upon encountering aPauseException
exception
-
-