Package org.refcodes.component
Interface Stoppable
-
- All Known Subinterfaces:
CompositeComponent
,CompositeComponent.ExtendedCompositeComponent<CTX,CON>
,ConfigurableLifeCycleComponent<CTX>
,ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton<CTX>
,LifeCycleComponent
,LifeCycleComponent.LifeCycleAutomaton
,LifeCycleComponent.UncheckedLifeCycleComponent
,Stoppable.StopAutomaton
,Stoppable.UncheckedStoppable
- All Known Implementing Classes:
CompositeComponentImpl
,CompositeComponentImpl.ExtendedCompositeComponentImpl
,ConfigurableLifeCycleAutomatonImpl
,LifeCycleAutomatonImpl
,LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
public interface Stoppable
This mixin might be implemented by a component in order to provide stop facilities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Stoppable.StopAutomaton
TheStoppable.StopAutomaton
interface defines those methods related to the stop life-cycle.static interface
Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>
To enable theStoppable
functionality to be invoked in a builder chain.static interface
Stoppable.UncheckedStoppable
SeeStoppable
without any checked exception being declared.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
stop()
Stops the component.default void
stopUnchecked()
Stops the component by callingstop()
without you to require catching anStopException
.
-
-
-
Method Detail
-
stop
void stop() throws StopException
Stops the component.- Throws:
StopException
- Thrown in case stopping fails.
-
stopUnchecked
default void stopUnchecked()
Stops the component by callingstop()
without you to require catching anStopException
.- Throws:
StopException.StopRuntimeException
- encapsulates the cause and is thrown upon encountering aStopException
exception
-
-