Class ChannelFunctionStreamSourceChannel
java.lang.Object
io.undertow.websockets.core.function.ChannelFunctionStreamSourceChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,InterruptibleChannel,ReadableByteChannel,ScatteringByteChannel,org.xnio.channels.CloseableChannel,org.xnio.channels.Configurable,org.xnio.channels.StreamSourceChannel,org.xnio.channels.SuspendableReadChannel
public class ChannelFunctionStreamSourceChannel
extends Object
implements org.xnio.channels.StreamSourceChannel
- Author:
- Norman Maurer
-
Field Summary
Fields inherited from interface org.xnio.channels.Configurable
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionChannelFunctionStreamSourceChannel(org.xnio.channels.StreamSourceChannel channel, ChannelFunction... functions) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidawaitReadable(long time, TimeUnit timeUnit) voidclose()org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel>org.xnio.XnioIoThread<T> TgetOption(org.xnio.Option<T> option) org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel>org.xnio.XnioExecutororg.xnio.XnioWorkerbooleanisOpen()booleanintread(ByteBuffer dst) longread(ByteBuffer[] dsts) longread(ByteBuffer[] dsts, int offset, int length) void<T> TsetOption(org.xnio.Option<T> option, T value) voidbooleansupportsOption(org.xnio.Option<?> option) voidlongtransferTo(long position, long count, FileChannel target) longtransferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) void
-
Constructor Details
-
ChannelFunctionStreamSourceChannel
public ChannelFunctionStreamSourceChannel(org.xnio.channels.StreamSourceChannel channel, ChannelFunction... functions)
-
-
Method Details
-
transferTo
- Specified by:
transferToin interfaceorg.xnio.channels.StreamSourceChannel- Throws:
IOException
-
transferTo
public long transferTo(long count, ByteBuffer throughBuffer, org.xnio.channels.StreamSinkChannel target) throws IOException - Specified by:
transferToin interfaceorg.xnio.channels.StreamSourceChannel- Throws:
IOException
-
getReadSetter
public org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel> getReadSetter()- Specified by:
getReadSetterin interfaceorg.xnio.channels.StreamSourceChannel- Specified by:
getReadSetterin interfaceorg.xnio.channels.SuspendableReadChannel
-
getCloseSetter
public org.xnio.ChannelListener.Setter<? extends org.xnio.channels.StreamSourceChannel> getCloseSetter()- Specified by:
getCloseSetterin interfaceorg.xnio.channels.CloseableChannel- Specified by:
getCloseSetterin interfaceorg.xnio.channels.StreamSourceChannel- Specified by:
getCloseSetterin interfaceorg.xnio.channels.SuspendableReadChannel
-
read
- Specified by:
readin interfaceScatteringByteChannel- Throws:
IOException
-
read
- Specified by:
readin interfaceScatteringByteChannel- Throws:
IOException
-
suspendReads
public void suspendReads()- Specified by:
suspendReadsin interfaceorg.xnio.channels.SuspendableReadChannel
-
resumeReads
public void resumeReads()- Specified by:
resumeReadsin interfaceorg.xnio.channels.SuspendableReadChannel
-
isReadResumed
public boolean isReadResumed()- Specified by:
isReadResumedin interfaceorg.xnio.channels.SuspendableReadChannel
-
wakeupReads
public void wakeupReads()- Specified by:
wakeupReadsin interfaceorg.xnio.channels.SuspendableReadChannel
-
shutdownReads
- Specified by:
shutdownReadsin interfaceorg.xnio.channels.SuspendableReadChannel- Throws:
IOException
-
awaitReadable
- Specified by:
awaitReadablein interfaceorg.xnio.channels.SuspendableReadChannel- Throws:
IOException
-
awaitReadable
- Specified by:
awaitReadablein interfaceorg.xnio.channels.SuspendableReadChannel- Throws:
IOException
-
getReadThread
public org.xnio.XnioExecutor getReadThread()- Specified by:
getReadThreadin interfaceorg.xnio.channels.SuspendableReadChannel
-
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
getWorker
public org.xnio.XnioWorker getWorker()- Specified by:
getWorkerin interfaceorg.xnio.channels.CloseableChannel
-
getIoThread
public org.xnio.XnioIoThread getIoThread()- Specified by:
getIoThreadin interfaceorg.xnio.channels.CloseableChannel
-
supportsOption
public boolean supportsOption(org.xnio.Option<?> option) - Specified by:
supportsOptionin interfaceorg.xnio.channels.Configurable
-
getOption
- Specified by:
getOptionin interfaceorg.xnio.channels.Configurable- Throws:
IOException
-
setOption
- Specified by:
setOptionin interfaceorg.xnio.channels.Configurable- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.xnio.channels.CloseableChannel- Specified by:
closein interfaceInterruptibleChannel- Throws:
IOException
-