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, getVersion
available, mark, markSupported, read, reset, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, handlerAdded, handlerRemoved
public static final String NAME
public ChannelInputStream(VersionedMetadata versionedMetadata, Runnable afterClose, int totalLength)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in interface ChannelInboundHandlerDefaults
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in interface ChannelInboundHandlerDefaults
Exception
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered
in interface io.netty.channel.ChannelInboundHandler
userEventTriggered
in interface ChannelInboundHandlerDefaults
Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractVersionedInputStream
IOException
public boolean moveReadable(io.netty.buffer.ByteBuf buf)
Copyright © 2021 JBoss by Red Hat. All rights reserved.