Package redis.clients.jedis
Interface ConnectionProvider
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
ClusterConnectionProvider
public interface ConnectionProvider extends java.io.CloseableInterface for providing connections to Redis instances. This is part of the Jedis compatibility layer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the provider and all its connectionsJedisClientConfiggetClientConfig()Get the client configurationConnectiongetConnection()Get a connection from the provider
-
-
-
Method Detail
-
getConnection
Connection getConnection()
Get a connection from the provider
-
getClientConfig
JedisClientConfig getClientConfig()
Get the client configuration
-
close
void close()
Close the provider and all its connections- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-