H - The type of the handle.ClosableHandle<H>public static interface ClosableHandle.CloseAutomatonHandle<H> extends ClosableHandle<H>
ClosableHandle.CloseAutomatonHandle interface defines those methods related
to the handle based close life-cycle.
The handle reference requires the ConnectionOpenable.ConnectionOpenAutomaton
interface to be implemented.ClosableHandle.CloseAutomatonHandle<H>| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasCloseAutomaton(H aHandle) |
Determines whether the handle reference is closable by implementing
the
ConnectionOpenable.ConnectionOpenAutomaton interface. |
boolean |
isClosable(H aHandle) |
Determines whether the component identified by the given handle may
get closed/disconnected.
|
boolean |
isClosed(H aHandle) |
Determines whether the component (its connection) identified by the
given handle is closed (disconnected).
|
close, closeUnchecked, hasClosableboolean hasCloseAutomaton(H aHandle) throws UnknownHandleRuntimeException
ConnectionOpenable.ConnectionOpenAutomaton interface.aHandle - The handle to test whether the reference provides the
according functionality.UnknownHandleRuntimeException - in case the handle is unknown.boolean isClosable(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle - The handle identifying the component.ClosableHandle.close(Object) is possible.UnknownHandleRuntimeException - in case the given handle is
unknown.UnsupportedHandleOperationRuntimeException - in case the
reference of the handle does not support the requested
operation.boolean isClosed(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle - The handle identifying the component.UnknownHandleRuntimeException - in case the given handle is
unknown.UnsupportedHandleOperationRuntimeException - in case the
reference of the handle does not support the requested
operation.Copyright © 2018. All rights reserved.