public final class ReadTimeoutStreamSourceChannel extends DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
Options.READ_TIMEOUTcloseSetter, delegate, readSetter| Constructor and Description |
|---|
ReadTimeoutStreamSourceChannel(org.xnio.channels.StreamSourceChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
void | close() |
int | read(ByteBuffer dst) |
long | read(ByteBuffer[] dsts) |
long | read(ByteBuffer[] dsts, int offset, int length) |
<T> T | setOption(org.xnio.Option<T> option, T value) |
void | shutdownReads() |
long | transferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) |
long | transferTo(long position, long count, FileChannel target) |
awaitReadable, awaitReadable, getCloseSetter, getIoThread, getOption, getReadSetter, getReadThread, getWorker, isOpen, isReadResumed, resumeReads, supportsOption, suspendReads, wakeupReadspublic ReadTimeoutStreamSourceChannel(org.xnio.channels.StreamSourceChannel delegate)
delegate - The underlying channelpublic long transferTo(long position,
long count,
FileChannel target)
throws IOException transferTo in interface org.xnio.channels.StreamSourceChanneltransferTo in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>IOExceptionpublic long transferTo(long count,
ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target)
throws IOException transferTo in interface org.xnio.channels.StreamSourceChanneltransferTo in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>IOExceptionpublic long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read in interface ScatteringByteChannelread in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>IOExceptionpublic long read(ByteBuffer[] dsts) throws IOException
read in interface ScatteringByteChannelread in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>IOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>IOExceptionpublic <T> T setOption(org.xnio.Option<T> option,
T value)
throws IllegalArgumentException,
IOException setOption in interface org.xnio.channels.ConfigurablesetOption in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>IllegalArgumentExceptionIOExceptionpublic void shutdownReads()
throws IOException shutdownReads in interface org.xnio.channels.SuspendableReadChannelshutdownReads in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>IOExceptionpublic void close()
throws IOException close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in interface InterruptibleChannelclose in interface org.xnio.channels.CloseableChannelclose in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>IOExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.