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 |
---|---|
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, wakeupReads
public 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.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
public void shutdownReads() throws IOException
shutdownReads
in interface org.xnio.channels.SuspendableReadChannel
shutdownReads
in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in interface InterruptibleChannel
close
in interface org.xnio.channels.CloseableChannel
close
in class DelegatingStreamSourceChannel<ReadTimeoutStreamSourceChannel>
IOException
Copyright © 2015 JBoss by Red Hat. All rights reserved.