public final class ReadTimeoutStreamSourceChannel extends DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
Options.READ_TIMEOUT
closeSetter, 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, wakeupReads
public 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.StreamSourceChannel
transferTo
in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
IOException
public long transferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) throws IOException
transferTo
in interface org.xnio.channels.StreamSourceChannel
transferTo
in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
IOException
public long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read
in interface ScatteringByteChannel
read
in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
IOException
public long read(ByteBuffer[] dsts) throws IOException
read
in interface ScatteringByteChannel
read
in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
IOException
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
read
in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
IOException
public <T> T setOption(org.xnio.Option<T> option, T value) throws IllegalArgumentException, IOException
setOption
in interface org.xnio.channels.Configurable
setOption
in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
IllegalArgumentException
IOException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.