Class JedisWrapperPool

  • All Implemented Interfaces:
    RedisPool

    public class JedisWrapperPool
    extends java.lang.Object
    implements RedisPool
    RedisPool implementation wrapping real connections
    • Constructor Summary

      Constructors 
      Constructor Description
      JedisWrapperPool​(redis.clients.jedis.JedisPool pool)
      Create pool
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Destroy pool
      Redis getResource()
      Get resource from pool.
      int inUse()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JedisWrapperPool

        public JedisWrapperPool​(redis.clients.jedis.JedisPool pool)
        Create pool
        Parameters:
        pool - Jedis pool
    • Method Detail

      • getResource

        public Redis getResource()
        Description copied from interface: RedisPool
        Get resource from pool.
        Specified by:
        getResource in interface RedisPool
        Returns:
        Redis connection
      • destroy

        public void destroy()
        Description copied from interface: RedisPool
        Destroy pool
        Specified by:
        destroy in interface RedisPool
      • inUse

        public int inUse()
        Specified by:
        inUse in interface RedisPool
        Returns:
        Number of connections in use