redis.clients.jedis.providers.ManagedConnectionProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.providers;
import redis.clients.jedis.CommandArguments;
import redis.clients.jedis.Connection;
public class ManagedConnectionProvider implements ConnectionProvider {
private Connection connection;
public final void setConnection(Connection connection) {
this.connection = connection;
}
@Override
public void close() {
}
@Override
public final Connection getConnection() {
return connection;
}
@Override
public final Connection getConnection(CommandArguments args) {
return connection;
}
}