H
- The type of the handle.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 and 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, hasClosable
boolean 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.UnsupportedHandleOperationRuntimeException
- in case the
reference of the handle does not support the requested
operation.UnknownHandleRuntimeException
- in case the given handle is
unknown.boolean isClosed(H aHandle) throws UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
aHandle
- The handle identifying the component.UnsupportedHandleOperationRuntimeException
- in case the
reference of the handle does not support the requested
operation.UnknownHandleRuntimeException
- in case the given handle is
unknown.Copyright © 2017. All rights reserved.