Package org.infinispan.server.resp
Class Resp3Handler
java.lang.Object
org.infinispan.server.resp.RespRequestHandler
org.infinispan.server.resp.CacheRespRequestHandler
org.infinispan.server.resp.Resp3AuthHandler
org.infinispan.server.resp.Resp3Handler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.infinispan.util.concurrent.BlockingManagerprotected org.infinispan.multimap.impl.EmbeddedSetCache<byte[], byte[]> protected org.infinispan.AdvancedCache<byte[], byte[]> protected org.infinispan.multimap.impl.EmbeddedMultimapListCache<byte[], byte[]> protected org.infinispan.multimap.impl.EmbeddedMultimapPairCache<byte[], byte[], byte[]> protected final ScheduledExecutorServiceprotected org.infinispan.multimap.impl.EmbeddedMultimapSortedSetCache<byte[], byte[]> Fields inherited from class org.infinispan.server.resp.CacheRespRequestHandler
cacheFields inherited from class org.infinispan.server.resp.RespRequestHandler
BYTE_BUF_POOL_ATTRIBUTE_KEY, myStage, respServer -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletionStage<RespRequestHandler> actualHandleRequest(io.netty.channel.ChannelHandlerContext ctx, RespCommand type, List<byte[]> arguments) Handles the RESP request returning a stage that when complete notifies the command has completed as well as providing the request handler for subsequent commands.voidcheckPermission(org.infinispan.security.AuthorizationPermission authorizationPermission) delegate(io.netty.channel.ChannelHandlerContext ctx, RespCommand command, List<byte[]> arguments) org.infinispan.util.concurrent.BlockingManagerorg.infinispan.multimap.impl.EmbeddedSetCache<byte[], byte[]> org.infinispan.multimap.impl.EmbeddedMultimapPairCache<byte[], byte[], byte[]> org.infinispan.multimap.impl.EmbeddedMultimapListCache<byte[], byte[]> org.infinispan.multimap.impl.EmbeddedMultimapSortedSetCache<byte[], byte[]> static voidhandleBulkAsciiResult(CharSequence result, ByteBufPool alloc) protected static voidhandleBulkResult(byte[] result, ByteBufPool alloc) static voidhandleBulkResult(CharSequence result, ByteBufPool alloc) static voidhandleCollectionBulkResult(Collection<byte[]> collection, ByteBufPool alloc) protected static voidhandleCollectionDoubleResult(Collection<Double> collection, ByteBufPool alloc) protected static voidhandleCollectionLongResult(Collection<Long> collection, ByteBufPool alloc) protected static voidhandleDoubleResult(Double result, ByteBufPool alloc) protected static voidhandleLongResult(Long result, ByteBufPool alloc) protected static voidhandleThrowable(ByteBufPool alloc, Throwable t) org.infinispan.AdvancedCache<byte[], byte[]> voidsetCache(org.infinispan.AdvancedCache<byte[], byte[]> cache) static voidwriteArrayPrefix(int size, ByteBufPool alloc) static voidwriteMapPrefix(int size, ByteBufPool alloc) Methods inherited from class org.infinispan.server.resp.Resp3AuthHandler
canUseCertAuth, isAuthorized, performAuth, performAuthMethods inherited from class org.infinispan.server.resp.CacheRespRequestHandler
cache, typedCacheMethods inherited from class org.infinispan.server.resp.RespRequestHandler
allocator, handleChannelDisconnect, handleRequest, initializeIfNecessary, myStage, respServer, stageToReturn, stageToReturn, stageToReturn
-
Field Details
-
ignorePreviousValueCache
protected org.infinispan.AdvancedCache<byte[],byte[]> ignorePreviousValueCache -
listMultimap
protected org.infinispan.multimap.impl.EmbeddedMultimapListCache<byte[],byte[]> listMultimap -
mapMultimap
protected org.infinispan.multimap.impl.EmbeddedMultimapPairCache<byte[],byte[], mapMultimapbyte[]> -
embeddedSetCache
protected org.infinispan.multimap.impl.EmbeddedSetCache<byte[],byte[]> embeddedSetCache -
sortedSetMultimap
protected org.infinispan.multimap.impl.EmbeddedMultimapSortedSetCache<byte[],byte[]> sortedSetMultimap -
scheduler
-
blockingManager
protected final org.infinispan.util.concurrent.BlockingManager blockingManager
-
-
Method Details
-
setCache
public void setCache(org.infinispan.AdvancedCache<byte[], byte[]> cache) - Overrides:
setCachein classCacheRespRequestHandler
-
getListMultimap
public org.infinispan.multimap.impl.EmbeddedMultimapListCache<byte[],byte[]> getListMultimap() -
getHashMapMultimap
public org.infinispan.multimap.impl.EmbeddedMultimapPairCache<byte[],byte[], getHashMapMultimap()byte[]> -
getEmbeddedSetCache
public org.infinispan.multimap.impl.EmbeddedSetCache<byte[],byte[]> getEmbeddedSetCache() -
getSortedSeMultimap
public org.infinispan.multimap.impl.EmbeddedMultimapSortedSetCache<byte[],byte[]> getSortedSeMultimap() -
getScheduler
-
getBlockingManager
public org.infinispan.util.concurrent.BlockingManager getBlockingManager() -
actualHandleRequest
protected CompletionStage<RespRequestHandler> actualHandleRequest(io.netty.channel.ChannelHandlerContext ctx, RespCommand type, List<byte[]> arguments) Description copied from class:RespRequestHandlerHandles the RESP request returning a stage that when complete notifies the command has completed as well as providing the request handler for subsequent commands.Implementations should never use the ByteBufAllocator in the context. Instead, they should use
RespRequestHandler.allocatorToUseto retrieve a ByteBuffer. This ByteBuffer should only have bytes written to it adding up to the size requested. The ByteBuffer itself should never be written to the context or channel and flush should also never be invoked. Failure to do so may cause mis-ordering or responses as requests support pipelining and a ByteBuf may not be send down stream until later in the pipeline.- Overrides:
actualHandleRequestin classResp3AuthHandler- Parameters:
ctx- Netty context pipeline for this requesttype- The command typearguments- The remaining arguments to the command- Returns:
- stage that when complete returns the new handler to instate. This stage must be completed on the event loop
-
handleLongResult
-
handleDoubleResult
-
handleCollectionDoubleResult
protected static void handleCollectionDoubleResult(Collection<Double> collection, ByteBufPool alloc) -
handleCollectionLongResult
-
handleBulkResult
-
handleBulkAsciiResult
-
handleCollectionBulkResult
-
handleBulkResult
-
handleThrowable
-
ignorePreviousValuesCache
public org.infinispan.AdvancedCache<byte[],byte[]> ignorePreviousValuesCache() -
delegate
public CompletionStage<RespRequestHandler> delegate(io.netty.channel.ChannelHandlerContext ctx, RespCommand command, List<byte[]> arguments) -
checkPermission
public void checkPermission(org.infinispan.security.AuthorizationPermission authorizationPermission) -
writeArrayPrefix
-
writeMapPrefix
-