- All Known Subinterfaces:
ComponentComposite,ComponentComposite.ExtendedComponentComposite<CTX,,CON> ConfigurableLifecycleComponent<CTX>,ConfigurableLifecycleComponent.ConfigurableLifecycleAutomaton<CTX>,LifecycleComponent,LifecycleComponent.LifecycleAutomaton,LifecycleComponent.UncheckedLifecycleComponent,Startable.StartAutomaton,Startable.UncheckedStartable
- All Known Implementing Classes:
AbstractComponentComposite,AbstractComponentComposite.ExtendedCompositeComponentImpl,ConfigurableLifecycleAutomatonImpl,LifecycleMachine,LifecycleMachine.ManualLifecycleMachine
public interface Startable
This mixin might be implemented by a component in order to provide start
facilities.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTheStartable.StartAutomatoninterface defines those methods related to the start life-cycle.static interfaceStartable.StartBuilder<B extends Startable.StartBuilder<B>>To enable theStartablefunctionality to be invoked in a builder chain.static interfaceSeeStartablewithout any checked exception being declared. -
Method Summary
Modifier and TypeMethodDescriptionvoidstart()Starts the component.default voidStarts the component by callingstart()without you to require catching anStartException.
-
Method Details
-
start
Starts the component.- Throws:
StartException- Thrown in case starting fails.
-
startUnchecked
default void startUnchecked()Starts the component by callingstart()without you to require catching anStartException.- Throws:
StartException.StartRuntimeException- encapsulates the aCause and is thrown upon encountering aStartExceptionexception
-