Package org.refcodes.component
Interface Resumable
-
- 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 ResumableThis mixin might be implemented by a component in order to provide resume facilities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceResumable.ResumeAutomatonTheResumable.ResumeAutomatoninterface defines those methods related to the resume life-cycle.static interfaceResumable.ResumeBuilder<B extends Resumable.ResumeBuilder<B>>To enable theResumablefunctionality to be invoked in a builder chain.static interfaceResumable.UncheckedResumableSeeResumablewithout any checked exception being declared.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidresume()Resumes the component.default voidresumeUnchecked()Resumes the component by callingresume()without you to require catching anResumeException.
-
-
-
Method Detail
-
resume
void resume() throws ResumeExceptionResumes 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 aResumeExceptionexception
-
-