Package org.infinispan.server.hotrod
Class HotRodDecoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.server.hotrod.HotRodDecoder
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class HotRodDecoder
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 Authenticationprotected final EmbeddedCacheManagerprotected org.infinispan.server.hotrod.TransactionRequestProcessorprotected org.infinispan.server.hotrod.CounterRequestProcessorprotected final Executorprotected static final Logprotected org.infinispan.server.hotrod.MultimapRequestProcessorprotected final HotRodServerprotected TaskRequestProcessorFields inherited from class io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR -
Constructor Summary
ConstructorsConstructorDescriptionHotRodDecoder(EmbeddedCacheManager cacheManager, Executor executor, HotRodServer server) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> List<T>allocList(int size) protected <K,V> Map<K, V> allocMap(int size) We usually know the size of the map ahead, and we want to return static empty map if we're not going to add anything.protected <T> Set<T>allocSet(int size) voidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) voidprotected intdefaultExpiration(int duration, int flags, ProtocolFlag defaultFlag) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable t) protected HotRodHeadervoidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx) intMethods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelRegistered, channelUnregisteredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Field Details
-
log
-
cacheManager
-
executor
-
server
-
auth
-
cacheProcessor
protected org.infinispan.server.hotrod.TransactionRequestProcessor cacheProcessor -
counterProcessor
protected org.infinispan.server.hotrod.CounterRequestProcessor counterProcessor -
multimapProcessor
protected org.infinispan.server.hotrod.MultimapRequestProcessor multimapProcessor -
taskProcessor
-
-
Constructor Details
-
HotRodDecoder
-
-
Method Details
-
getHeader
-
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() -
getExecutor
-
handlerAdded
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelHandlerAdapter
-
channelActive
- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelWritabilityChanged
- Specified by:
channelWritabilityChangedin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelWritabilityChangedin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable t) throws Exception - Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
defaultExpiration
-
allocMap
We usually know the size of the map ahead, and we want to return static empty map if we're not going to add anything. -
allocList
-
allocSet
-