public class JedisClusterContainer extends Object implements JedisCommandsInstanceContainer
Constructor and Description |
---|
JedisClusterContainer(redis.clients.jedis.JedisCluster jedisCluster)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release Container.
|
redis.clients.jedis.JedisCommands |
getInstance()
Borrows instance from container.
|
void |
returnInstance(redis.clients.jedis.JedisCommands jedisCommands)
Returns instance to container.
|
public JedisClusterContainer(redis.clients.jedis.JedisCluster jedisCluster)
jedisCluster
- JedisCluster instancepublic redis.clients.jedis.JedisCommands getInstance()
getInstance
in interface JedisCommandsInstanceContainer
public void returnInstance(redis.clients.jedis.JedisCommands jedisCommands)
returnInstance
in interface JedisCommandsInstanceContainer
jedisCommands
- borrowed instancepublic void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface JedisCommandsInstanceContainer
Copyright © 2023 The Apache Software Foundation. All rights reserved.