Class RespServer

All Implemented Interfaces:
AutoCloseable, ProtocolServer<RespServerConfiguration>

public class RespServer extends AbstractProtocolServer<RespServerConfiguration>
Server that supports RESP protocol
Since:
14.0
Author:
William Burns
  • Field Details

  • Constructor Details

    • RespServer

      public RespServer()
  • Method Details

    • startInternal

      protected void startInternal()
      Overrides:
      startInternal in class AbstractProtocolServer<RespServerConfiguration>
    • getEncoder

      public io.netty.channel.ChannelOutboundHandler getEncoder()
      Description copied from interface: ProtocolServer
      Gets the encoder for this protocol server. The encoder is responsible for writing back common header responses back to client. This method can return null if the server has no encoder. You can find an example of the server that has no encoder in the Memcached server.
    • getDecoder

      public io.netty.channel.ChannelInboundHandler getDecoder()
      Description copied from interface: ProtocolServer
      Gets the decoder for this protocol server. The decoder is responsible for reading client requests. This method cannot return null.
    • getInitializer

      public io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer()
      Description copied from interface: ProtocolServer
      Returns a pipeline factory
    • getChannelMatcher

      public io.netty.channel.group.ChannelMatcher getChannelMatcher()
      Description copied from interface: ProtocolServer
      Returns a ChannelMatcher which matches channels which belong to this protocol server
    • stop

      public void stop()
      Description copied from interface: ProtocolServer
      Stops the server.
      Specified by:
      stop in interface ProtocolServer<RespServerConfiguration>
      Overrides:
      stop in class AbstractProtocolServer<RespServerConfiguration>
    • getCache

      public AdvancedCache<byte[],byte[]> getCache()
      Returns the cache being used by the Resp server
    • newHandler

      public Resp3Handler newHandler(AdvancedCache<byte[],byte[]> cache)
    • installDetector

      public void installDetector(io.netty.channel.Channel ch)
      Description copied from interface: ProtocolServer
      Installs a protocol detector on the channel
      Parameters:
      ch -
    • getIterationManager

      public DefaultIterationManager getIterationManager()
    • getDataStructureIterationManager

      public ExternalSourceIterationManager getDataStructureIterationManager()
    • getTimeService

      public TimeService getTimeService()
    • segmentSlotRelation

      public SegmentSlotRelation segmentSlotRelation()
    • metadataRepository

      public MetadataRepository metadataRepository()