Class MemcachedBaseDecoder

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.server.memcached.MemcachedBaseDecoder
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
Direct Known Subclasses:
BinaryAuthDecoderImpl, BinaryOpDecoderImpl, TextAuthDecoder, TextOpDecoder

public abstract class MemcachedBaseDecoder extends io.netty.handler.codec.ByteToMessageDecoder
Since:
15.0
  • Field Details

    • ANONYMOUS

      protected static final Subject ANONYMOUS
    • log

      protected static final Log log
    • server

      protected final MemcachedServer server
    • statistics

      protected final MemcachedStats statistics
    • statsEnabled

      protected final boolean statsEnabled
    • accessLogging

      protected final boolean accessLogging
    • requestStart

      protected Temporal requestStart
    • ctx

      protected io.netty.channel.ChannelHandlerContext ctx
    • timeService

      protected final TimeService timeService
    • versionGenerator

      protected final VersionGenerator versionGenerator
    • cache

      protected final AdvancedCache<byte[],byte[]> cache
    • subject

      protected final Subject subject
    • principalName

      protected final String principalName
    • current

      protected final ByRef<MemcachedResponse> current
  • Constructor Details

  • Method Details

    • registerExceptionHandler

      public void registerExceptionHandler(BiConsumer<io.netty.channel.ChannelHandlerContext,MemcachedResponse> handler)
    • exceptionCaught

      protected final void exceptionCaught(Header header, Throwable t)
    • handlerAdded

      public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      handlerAdded in interface io.netty.channel.ChannelHandler
      Overrides:
      handlerAdded in class io.netty.channel.ChannelHandlerAdapter
      Throws:
      Exception
    • resumeRead

      public void resumeRead()
    • failedResponse

      protected abstract MemcachedResponse failedResponse(Header header, Throwable t)
    • send

      protected abstract MemcachedResponse send(Header header, CompletionStage<?> response)
    • send

      protected abstract MemcachedResponse send(Header header, CompletionStage<?> response, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
    • statsMap

      protected Map<byte[],byte[]> statsMap()
    • touchMetadata

      protected Metadata touchMetadata(CacheEntry<?,?> entry, int expiration)
    • toMillis

      protected long toMillis(int lifespan)
    • metadata

      protected Metadata metadata(int flags, int expiration)