-
- All Known Subinterfaces:
CompositeComponent
,CompositeComponent.ExtendedCompositeComponent<CTX,CON>
,ConfigurableLifecycleComponent<CTX>
,ConfigurableLifecycleComponent.ConfigurableLifecycleAutomaton<CTX>
,LifecycleComponent
,LifecycleComponent.LifecycleAutomaton
,LifecycleComponent.UncheckedLifecycleComponent
,Resumable.ResumeAutomaton
,Resumable.UncheckedResumable
- All Known Implementing Classes:
CompositeComponentImpl
,CompositeComponentImpl.ExtendedCompositeComponentImpl
,ConfigurableLifecycleAutomatonImpl
,LifecycleAutomatonImpl
,LifecycleAutomatonImpl.ManualLifecycleAutomatonImpl
public interface Resumable
This mixin might be implemented by a component in order to provide resume facilities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Resumable.ResumeAutomaton
TheResumable.ResumeAutomaton
interface defines those methods related to the resume life-cycle.static interface
Resumable.ResumeBuilder<B extends Resumable.ResumeBuilder<B>>
To enable theResumable
functionality to be invoked in a builder chain.static interface
Resumable.UncheckedResumable
SeeResumable
without any checked exception being declared.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
resume()
Resumes the component.default void
resumeUnchecked()
Resumes the component by callingresume()
without you to require catching anResumeException
.
-
-
-
Method Detail
-
resume
void resume() throws ResumeException
Resumes the component.- Throws:
ResumeException
- Thrown in case resuming fails.
-
resumeUnchecked
default void resumeUnchecked()
Resumes the component by callingresume()
without you to require catching anResumeException
.- Throws:
ResumeException.ResumeRuntimeException
- encapsulates the cause and is thrown upon encountering aResumeException
exception
-
-