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
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
Fields inherited from class org.infinispan.hotrod.impl.protocol.AbstractVersionedInputStream
afterClose, versionedMetadata
-
-
Constructor Summary
Constructors Constructor Description ChannelInputStream(VersionedMetadata versionedMetadata, Runnable afterClose, int totalLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelRead(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, getVersion
-
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.hotrod.impl.transport.netty.ChannelInboundHandlerDefaults
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, handlerAdded, handlerRemoved
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChannelInputStream
public ChannelInputStream(VersionedMetadata versionedMetadata, Runnable afterClose, int totalLength)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception- 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
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classAbstractVersionedInputStream- Throws:
IOException
-
moveReadable
public boolean moveReadable(io.netty.buffer.ByteBuf buf)
-
-