Class ChannelInputStream
java.lang.Object
java.io.InputStream
org.infinispan.hotrod.impl.protocol.AbstractVersionedInputStream
org.infinispan.hotrod.impl.protocol.ChannelInputStream
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,Closeable,AutoCloseable,Metadata,Versioned,VersionedMetadata,ChannelInboundHandlerDefaults
public class ChannelInputStream
extends AbstractVersionedInputStream
implements ChannelInboundHandlerDefaults
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsFields inherited from class org.infinispan.hotrod.impl.protocol.AbstractVersionedInputStream
afterClose, versionedMetadata -
Constructor Summary
ConstructorsConstructorDescriptionChannelInputStream(VersionedMetadata versionedMetadata, Runnable afterClose, int totalLength) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidclose()voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) booleanmoveReadable(io.netty.buffer.ByteBuf buf) intread()intread(byte[] b, int off, int len) voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class org.infinispan.hotrod.impl.protocol.AbstractVersionedInputStream
getCreated, getLastUsed, getLifespan, getMaxIdle, getVersionMethods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.hotrod.impl.transport.netty.ChannelInboundHandlerDefaults
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, handlerAdded, handlerRemoved
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ChannelInputStream
public ChannelInputStream(VersionedMetadata versionedMetadata, Runnable afterClose, int totalLength)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Specified by:
channelReadin interfaceChannelInboundHandlerDefaults- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception - Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandlerDefaults- Throws:
Exception
-
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - Specified by:
userEventTriggeredin interfaceio.netty.channel.ChannelInboundHandler- Specified by:
userEventTriggeredin interfaceChannelInboundHandlerDefaults- Throws:
Exception
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classAbstractVersionedInputStream- Throws:
IOException
-
moveReadable
public boolean moveReadable(io.netty.buffer.ByteBuf buf)
-