Interface ProtocolServer<C extends ProtocolServerConfiguration>

    • Method Detail

      • start

        void start​(C configuration,
                   EmbeddedCacheManager cacheManager)
        Starts the server backed by the given cache manager and with the corresponding configuration.
      • 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