Package org.gorpipe.spark.platform
Class JedisWrapperPool
java.lang.Object
org.gorpipe.spark.platform.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
Modifier and Type Method Description voiddestroy()Destroy poolRedisgetResource()Get resource from pool.intinUse()
-
Constructor Details
-
JedisWrapperPool
public JedisWrapperPool(redis.clients.jedis.JedisPool pool)Create pool- Parameters:
pool- Jedis pool
-
-
Method Details
-
getResource
Description copied from interface:RedisPoolGet resource from pool.- Specified by:
getResourcein interfaceRedisPool- Returns:
- Redis connection
-
destroy
public void destroy()Description copied from interface:RedisPoolDestroy pool -
inUse
public int inUse()
-