- All Known Subinterfaces:
ComponentComposite
,ComponentComposite.ExtendedComponentComposite<CTX,
,CON> ConfigurableLifecycleComponent<CTX>
,ConfigurableLifecycleComponent.ConfigurableLifecycleAutomaton<CTX>
,LifecycleComponent
,LifecycleComponent.LifecycleAutomaton
,LifecycleComponent.UncheckedLifecycleComponent
,Stoppable.StopAutomaton
,Stoppable.UncheckedStoppable
- All Known Implementing Classes:
AbstractComponentComposite
,AbstractComponentComposite.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
Modifier and TypeInterfaceDescriptionstatic interface
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
SeeStoppable
without any checked exception being declared. -
Method Summary
Modifier and TypeMethodDescriptionvoid
stop()
Stops the component.default void
Stops the component by callingstop()
without you to require catching anStopException
.
-
Method Details
-
stop
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
-