AbstractInterruptibleChannel subclasses.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | InterruptibleChannelUtil.
Reference to the protected |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static <T extends Exception> T | |
| pack-priv static void | endInterruptable(AFSomeSocketChannel
The channel. channel, InterruptibleChannelUtil.The reference to the protected end,AbstractInterruptibleChannel#end(boolean)
method.true if the block started with begin succeeded without an
exception.An optional exception that was caught in the try-catch-finally block. exception)Wrapper method that calls |
| pack-priv static Exception | Returns: The exception.The channel to work with. channel, IOException The exception e)Makes sure that upon an exception that is documented to have the channel be closed the channel is indeed closed before throwing that exception. |
| pack-priv static IOException |
| InterruptibleChannelUtil | back to summary |
|---|---|
| pack-priv InterruptibleChannelUtil() | |
| closeAndThrow | back to summary |
|---|---|
| private static <T extends Exception> T closeAndThrow(AFSomeSocketChannel channel, T exc) | |
| endInterruptable | back to summary |
|---|---|
| pack-priv static void endInterruptable(AFSomeSocketChannel channel, InterruptibleChannelUtil. Wrapper method that calls
| |
| handleException | back to summary |
|---|---|
| pack-priv static Exception handleException(AFSomeSocketChannel channel, IOException e) Makes sure that upon an exception that is documented to have the channel be closed the channel is indeed closed before throwing that exception. If the exception is also documented to have the "Thread interrupted" state be set, make sure that this state is actually set as well.
| |
| ioExceptionOrThrowRuntimeException | back to summary |
|---|---|
| pack-priv static IOException ioExceptionOrThrowRuntimeException(Exception exception) | |
AbstractInterruptibleChannel#end(boolean) method.
| Modifier and Type | Method and Description |
|---|---|
| public void |
| end | back to summary |
|---|---|
| public void end(boolean completed) throws AsynchronousCloseException | |