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:
CompositeComponentHandle<H,REF>
,ConfigurableLifeCycleComponentHandle.ConfigurableLifeCycleAutomatonHandle<H,CTX>
,LifeCycleComponentHandle.LifeCycleAutomatonHandle<H>
- Enclosing interface:
- ResumableHandle<H>
public static interface ResumableHandle.ResumeAutomatonHandle<H> extends RunningHandle<H>, ResumableHandle<H>
TheResumableHandle.ResumeAutomatonHandle
interface defines those methods related to the handle based resume life-cycle. The handle reference requires theResumable.ResumeAutomaton
interface to be implemented.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.ResumableHandle
ResumableHandle.ResumeAutomatonHandle<H>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
hasResumeAutomaton
boolean hasResumeAutomaton(H aHandle) throws UnknownHandleRuntimeException
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.
-
-