Class HotRodClientDecoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.hotrod.impl.transport.netty.HotRodClientDecoder
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class HotRodClientDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoder
io.netty.handler.codec.ByteToMessageDecoder.CumulatorNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final HeaderDecoderstatic final io.netty.util.Signalprotected static final org.infinispan.commons.logging.Logprotected final CacheRequestProcessorFields inherited from class io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR -
Constructor Summary
ConstructorsConstructorDescriptionHotRodClientDecoder(HeaderDecoder delegate, CacheRequestProcessor processor) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> List<T> allocList(int size) protected <K,V> Map <K, V> allocMap(int size) protected <T> Set<T> allocSet(int size) protected voidcallDecode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out) voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) <T extends HotRodOperation<?>>
Tcurrent()voidprotected voiddelegateParsing(io.netty.buffer.ByteBuf buf, long messageId, short opCode, short status) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) voidprotected booleanisHashDistributionAware(long messageId) booleanprotected booleanoperationResponseHasError(long messageId, short opCode) intvoidregisterOperation(io.netty.channel.Channel channel, HotRodOperation<?> op) voidremoveListener(byte[] id) intvoiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecodeMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAddedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded
-
Field Details
-
log
protected static final org.infinispan.commons.logging.Log log -
DELEGATE
public static final io.netty.util.Signal DELEGATE -
delegate
-
responseHandler
-
-
Constructor Details
-
HotRodClientDecoder
-
-
Method Details
-
decode
public void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf, List<Object> out) throws Exception - Specified by:
decodein classio.netty.handler.codec.ByteToMessageDecoder- Throws:
Exception
-
requestBytes
public int requestBytes() -
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
callDecode
protected void callDecode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out) - Overrides:
callDecodein classio.netty.handler.codec.ByteToMessageDecoder
-
channelInactive
- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.handler.codec.ByteToMessageDecoder- Throws:
Exception
-
isSharable
public boolean isSharable()- Overrides:
isSharablein classio.netty.channel.ChannelHandlerAdapter
-
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - Specified by:
userEventTriggeredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
userEventTriggeredin classio.netty.handler.codec.ByteToMessageDecoder- Throws:
Exception
-
failoverClientListeners
public void failoverClientListeners() -
delegateParsing
protected void delegateParsing(io.netty.buffer.ByteBuf buf, long messageId, short opCode, short status) -
operationResponseHasError
protected boolean operationResponseHasError(long messageId, short opCode) -
removeListener
public void removeListener(byte[] id) -
isHashDistributionAware
protected boolean isHashDistributionAware(long messageId) -
registerOperation
-
registeredOperations
public int registeredOperations() -
current
-
allocMap
-
allocList
-
allocSet
-