public class RedisClusterContainer extends Object implements RedisCommandsInstanceContainer
Constructor and Description |
---|
RedisClusterContainer(redis.clients.jedis.JedisCluster jedisCluster)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
RedisCommands |
getInstance()
Borrows instance from container.
|
void |
returnInstance(RedisCommands redisCommands)
Returns instance to container.
|
public RedisClusterContainer(redis.clients.jedis.JedisCluster jedisCluster)
jedisCluster
- JedisCluster instancepublic RedisCommands getInstance()
getInstance
in interface RedisCommandsInstanceContainer
public void returnInstance(RedisCommands redisCommands)
returnInstance
in interface RedisCommandsInstanceContainer
redisCommands
- borrowed instancepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023 The Apache Software Foundation. All rights reserved.