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 |
|---|---|
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) |
long |
transferTo(long count,
ByteBuffer throughBuffer,
org.xnio.channels.StreamSinkChannel target) |
long |
transferTo(long position,
long count,
FileChannel target) |
awaitReadable, awaitReadable, close, getCloseSetter, getIoThread, getOption, getReadSetter, getReadThread, getWorker, isOpen, isReadResumed, resumeReads, shutdownReads, supportsOption, suspendReads, wakeupReadspublic ReadTimeoutStreamSourceChannel(org.xnio.channels.StreamSourceChannel delegate)
delegate - The underlying channelreadTimeout - The read timeout, in millisecondspublic 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>IllegalArgumentExceptionIOExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.