Module org.refcodes.component
Package org.refcodes.component
Interface ResumableHandle.ResumeAutomatonHandle<H>
- Type Parameters:
H
- The type of the handle.
- All Superinterfaces:
ResumableHandle<H>
,RunningHandle<H>
- All Known Subinterfaces:
ComponentHandleComposite<H,
,REF> ConfigurableLifecycleComponentHandle.ConfigurableLifecycleAutomatonHandle<H,
,CTX> LifecycleComponentHandle.LifecycleAutomatonHandle<H>
- Enclosing interface:
- ResumableHandle<H>
public static interface ResumableHandle.ResumeAutomatonHandle<H>
extends RunningHandle<H>, ResumableHandle<H>
The
ResumableHandle.ResumeAutomatonHandle
interface defines those methods related
to the handle based resume life-cycle. The handle reference requires the
Resumable.ResumeAutomaton
interface to be implemented.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.ResumableHandle
ResumableHandle.ResumeAutomatonHandle<H>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasResumeAutomaton
(H aHandle) Determines whether the handle reference is resumable by implementing theResumable.ResumeAutomaton
interface.boolean
isResumable
(H aHandle) Determines whether the component identified by the given handle may get resumed.Methods inherited from interface org.refcodes.component.ResumableHandle
hasResumable, resume, resumeUnchecked
Methods inherited from interface org.refcodes.component.RunningHandle
isRunning
-
Method Details
-
hasResumeAutomaton
Determines whether the handle reference is resumable by implementing theResumable.ResumeAutomaton
interface.- Parameters:
aHandle
- The handle to test whether the reference provides the according functionality.- Returns:
- True in case the reference provides the according functionality.
- Throws:
UnknownHandleRuntimeException
- in case the handle is unknown.
-
isResumable
boolean isResumable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException Determines whether the component identified by the given handle may get resumed.- Parameters:
aHandle
- The handle identifying the component.- Returns:
- True if
ResumableHandle.resume(Object)
is possible. - Throws:
UnknownHandleRuntimeException
- in case the given handle is unknown.UnsupportedHandleOperationRuntimeException
- in case the reference of the handle does not support the requested operation.
-