Module spring.data.elasticsearch
Interface RoutingResolver
- All Known Implementing Classes:
DefaultRoutingResolver
public interface RoutingResolver
- Since:
- 4.2
- Author:
- Peter-Josef Meisch
-
Method Summary
Modifier and TypeMethodDescriptionreturns the routing when no entity is available.<T> StringgetRouting(T bean) Returns the routing for a bean.static RoutingResolverReturns athat always retuns a fixed value
-
Method Details
-
getRouting
returns the routing when no entity is available.- Returns:
- the routing value
-
getRouting
Returns the routing for a bean.- Parameters:
bean- the bean to get the routing for- Returns:
- the routing value
-
just
Returns athat always retuns a fixed value- Parameters:
value- the value to return- Returns:
- the fixed-value
RoutingResolver
-