public class ChannelInputStream extends AbstractVersionedInputStream implements ChannelInboundHandlerDefaults
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
afterClose, versionedMetadata| Constructor and Description |
|---|
ChannelInputStream(VersionedMetadata versionedMetadata,
Runnable afterClose,
int totalLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
close() |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
boolean |
moveReadable(io.netty.buffer.ByteBuf buf) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
getCreated, getLastUsed, getLifespan, getMaxIdle, getVersionavailable, mark, markSupported, read, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, handlerAdded, handlerRemovedpublic static final String NAME
public ChannelInputStream(VersionedMetadata versionedMetadata, Runnable afterClose, int totalLength)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in interface ChannelInboundHandlerDefaultsExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in interface ChannelInboundHandlerDefaultsExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in interface ChannelInboundHandlerDefaultsExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AbstractVersionedInputStreamIOExceptionpublic boolean moveReadable(io.netty.buffer.ByteBuf buf)
Copyright © 2022 JBoss by Red Hat. All rights reserved.