Interface JedisCommandsInstanceContainer
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
JedisClusterContainer
,JedisContainer
Interfaces for containers which stores instances implementing JedisCommands.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release Container.redis.clients.jedis.JedisCommands
Borrows instance from container.void
returnInstance
(redis.clients.jedis.JedisCommands jedisCommands) Returns instance to container.
-
Method Details
-
getInstance
redis.clients.jedis.JedisCommands getInstance()Borrows instance from container.- Returns:
- instance which implements JedisCommands
-
returnInstance
void returnInstance(redis.clients.jedis.JedisCommands jedisCommands) Returns instance to container.- Parameters:
jedisCommands
- borrowed instance
-
close
void close()Release Container.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-