Interface ProtocolServer<C extends ProtocolServerConfiguration>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      C getConfiguration()
      Returns the configuration used to start this server
      io.netty.channel.ChannelInboundHandler getDecoder()
      Gets the decoder for this protocol server.
      io.netty.channel.ChannelOutboundHandler getEncoder()
      Gets the encoder for this protocol server.
      io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer()
      Returns a pipeline factory
      java.lang.String getName()
      Returns the name of this server
      void start​(C configuration, EmbeddedCacheManager cacheManager)
      Starts the server backed by the given cache manager and with the corresponding configuration.
      void start​(C configuration, EmbeddedCacheManager cacheManager, CacheIgnoreManager cacheIgnore)
      Starts the server backed by the given cache manager, with the corresponding configuration and the handler for the ignored caches state
      void stop()
      Stops the server
    • Method Detail

      • start

        void start​(C configuration,
                   EmbeddedCacheManager cacheManager)
        Starts the server backed by the given cache manager and with the corresponding configuration.
      • start

        void start​(C configuration,
                   EmbeddedCacheManager cacheManager,
                   CacheIgnoreManager cacheIgnore)
        Starts the server backed by the given cache manager, with the corresponding configuration and the handler for the ignored caches state
      • stop

        void stop()
        Stops the server
      • getEncoder

        io.netty.channel.ChannelOutboundHandler getEncoder()
        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

        io.netty.channel.ChannelInboundHandler getDecoder()
        Gets the decoder for this protocol server. The decoder is responsible for reading client requests. This method cannot return null.
      • getConfiguration

        C getConfiguration()
        Returns the configuration used to start this server
      • getInitializer

        io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer()
        Returns a pipeline factory
      • getName

        java.lang.String getName()
        Returns the name of this server