Interface ClusterNodeResourceProvider
public interface ClusterNodeResourceProvider
ClusterNodeResourceProvider
provides access to low level client api to directly execute operations against a
Redis instance.- Since:
- 1.7
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescription<S> S
Get the client resource for the given node.void
returnResourceForSpecificNode
(RedisClusterNode node, Object resource) Return the resource object for the given node.
-
Method Details
-
getResourceForSpecificNode
Get the client resource for the given node.- Parameters:
node
- must not be null.- Returns:
- never null.
- Throws:
DataAccessResourceFailureException
- if node is not known to the cluster.
-
returnResourceForSpecificNode
Return the resource object for the given node. This can mean free up resources or return elements back to a pool.- Parameters:
node
- must not be null.resource
- must not be null.
-