Interface ConnectionProvider

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    ClusterConnectionProvider

    public interface ConnectionProvider
    extends java.io.Closeable
    Interface for providing connections to Redis instances. This is part of the Jedis compatibility layer.
    • Method Detail

      • getConnection

        Connection getConnection()
        Get a connection from the provider
      • close

        void close()
        Close the provider and all its connections
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable