
com.bendb.dropwizard.redis.JedisPoolManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-redis Show documentation
Show all versions of dropwizard-redis Show documentation
Addon bundle for Dropwizard to support use of Redis
package com.bendb.dropwizard.redis;
import io.dropwizard.lifecycle.Managed;
import redis.clients.jedis.JedisPool;
public class JedisPoolManager implements Managed {
private final JedisPool pool;
public JedisPoolManager(JedisPool pool) {
this.pool = pool;
}
@Override
public void start() throws Exception {
// sure, no problem
}
@Override
public void stop() throws Exception {
pool.destroy();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy