Interface StoppableHandle.StopAutomatonHandle<H>

Type Parameters:
H - The type of the handle.
All Superinterfaces:
StoppableHandle<H>
All Known Subinterfaces:
ComponentHandleComposite<H,REF>, ConfigurableLifecycleComponentHandle.ConfigurableLifecycleAutomatonHandle<H,CTX>, LifecycleComponentHandle.LifecycleAutomatonHandle<H>
Enclosing interface:
StoppableHandle<H>

public static interface StoppableHandle.StopAutomatonHandle<H> extends StoppableHandle<H>
The StoppableHandle.StopAutomatonHandle interface defines those methods related to the handle based stop life-cycle. The handle reference requires the Stoppable.StopAutomaton interface to be implemented.
  • Method Details

    • hasStopAutomaton

      boolean hasStopAutomaton(H aHandle)
      Determines whether the handle reference is stoppable by implementing the Stoppable.StopAutomaton 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.
    • isStoppable

      boolean isStoppable(H aHandle)
      Determines whether the component identified by the given handle may get stopped.
      Parameters:
      aHandle - The handle identifying the component.
      Returns:
      True if StoppableHandle.stop(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.
    • isStopped

      boolean isStopped(H aHandle)
      Determines whether the component identified by the given handle is stopped.
      Parameters:
      aHandle - The handle identifying the component.
      Returns:
      True in case of being stopped, else false.
      Throws:
      UnknownHandleRuntimeException - in case the given handle is unknown.
      UnsupportedHandleOperationRuntimeException - in case the reference of the handle does not support the requested operation.