Class RedisClientBundle<K,​V,​T extends io.dropwizard.core.Configuration>

  • All Implemented Interfaces:
    io.dropwizard.core.ConfiguredBundle<T>

    public abstract class RedisClientBundle<K,​V,​T extends io.dropwizard.core.Configuration>
    extends Object
    implements io.dropwizard.core.ConfiguredBundle<T>
    • Constructor Detail

      • RedisClientBundle

        public RedisClientBundle()
    • Method Detail

      • initialize

        public void initialize​(io.dropwizard.core.setup.Bootstrap<?> bootstrap)
        Specified by:
        initialize in interface io.dropwizard.core.ConfiguredBundle<K>
      • run

        public void run​(T configuration,
                        io.dropwizard.core.setup.Environment environment)
                 throws Exception
        Specified by:
        run in interface io.dropwizard.core.ConfiguredBundle<K>
        Throws:
        Exception
      • getRedisClientFactory

        public abstract RedisClientFactory<K,​V> getRedisClientFactory​(T configuration)
      • getConnection

        public io.lettuce.core.api.StatefulRedisConnection<K,​V> getConnection()