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 PausableThis mixin might be implemented by a component in order to provide pause facilities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePausable.PauseAutomatonThePausable.PauseAutomatoninterface defines those methods related to the pause life-cycle.static interfacePausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>To enable thePausablefunctionality to be invoked in a builder chain.static interfacePausable.UncheckedPausableSeePausablewithout any checked exception being declared.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidpause()Pauses the component.default voidpauseUnchecked()Pauses the component by callingpause()without you to require catching anPauseException.
-
-
-
Method Detail
-
pause
void pause() throws PauseExceptionPauses 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 aPauseExceptionexception
-
-