Class RedisClientManager<K,​V>

  • All Implemented Interfaces:
    io.dropwizard.lifecycle.Managed

    public class RedisClientManager<K,​V>
    extends Object
    implements io.dropwizard.lifecycle.Managed
    Manages the Redis client lifecycle alongside the application's lifecycle.
    • Constructor Detail

      • RedisClientManager

        public RedisClientManager​(io.lettuce.core.AbstractRedisClient client,
                                  io.lettuce.core.api.StatefulConnection<K,​V> connection,
                                  String name)
    • Method Detail

      • start

        public void start()
                   throws Exception
        Specified by:
        start in interface io.dropwizard.lifecycle.Managed
        Throws:
        Exception
      • stop

        public void stop()
                  throws Exception
        Specified by:
        stop in interface io.dropwizard.lifecycle.Managed
        Throws:
        Exception