public final class ReopeningInterruptibleChannel<T extends InterruptibleChannel> extends Object implements InterruptibleChannel
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReopeningInterruptibleChannel.IoOperation<T,R> |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static <T extends InterruptibleChannel> |
create(Supplier<T> channelFactory) |
<R> R |
execute(ReopeningInterruptibleChannel.IoOperation<T,R> operation) |
boolean |
isOpen() |
public static <T extends InterruptibleChannel> ReopeningInterruptibleChannel<T> create(Supplier<T> channelFactory)
public <R> R execute(ReopeningInterruptibleChannel.IoOperation<T,R> operation) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in interface InterruptibleChannelIOExceptionCopyright © 2015–2024. All rights reserved.