Class RedisClientManager
java.lang.Object
io.datarouter.storage.client.BaseClientManager
io.datarouter.client.redis.client.RedisClientManager
- All Implemented Interfaces:
io.datarouter.storage.client.ClientManager
@Singleton
public class RedisClientManager
extends io.datarouter.storage.client.BaseClientManager
-
Constructor Summary
Constructors Constructor Description RedisClientManager() -
Method Summary
Modifier and Type Method Description io.lettuce.core.cluster.api.async.RedisClusterAsyncCommands<byte[],byte[]>getClient(io.datarouter.storage.client.ClientId clientId)RedisOptions.RedisClientModegetMode(io.datarouter.storage.client.ClientId clientId)protected voidsafeInitClient(io.datarouter.storage.client.ClientId clientId)voidshutdown(io.datarouter.storage.client.ClientId clientId)
-
Constructor Details
-
RedisClientManager
public RedisClientManager()
-
-
Method Details
-
shutdown
public void shutdown(io.datarouter.storage.client.ClientId clientId) -
safeInitClient
protected void safeInitClient(io.datarouter.storage.client.ClientId clientId)- Specified by:
safeInitClientin classio.datarouter.storage.client.BaseClientManager
-
getClient
public io.lettuce.core.cluster.api.async.RedisClusterAsyncCommands<byte[],byte[]> getClient(io.datarouter.storage.client.ClientId clientId) -
getMode
-