Class DocumentRoutesDescriptor
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.route.DocumentRoutesDescriptor
-
- All Implemented Interfaces:
Serializable
public final class DocumentRoutesDescriptor extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentRoutesDescriptor(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentRouteDescriptorcurrentRoute()static DocumentRoutesDescriptorfromLegacyRoutingKey(String providedRoutingKey)A util to convert the legacy representation of a route (a single string) to aDocumentRoutesDescriptor.static DocumentRoutesDescriptorof(DocumentRouteDescriptor currentRoute)static DocumentRoutesDescriptorof(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes)Collection<DocumentRouteDescriptor>previousRoutes()StringtoString()
-
-
-
Constructor Detail
-
DocumentRoutesDescriptor
public DocumentRoutesDescriptor(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes)
-
-
Method Detail
-
of
public static DocumentRoutesDescriptor of(DocumentRouteDescriptor currentRoute)
-
of
public static DocumentRoutesDescriptor of(DocumentRouteDescriptor currentRoute, Collection<DocumentRouteDescriptor> previousRoutes)
-
fromLegacyRoutingKey
public static DocumentRoutesDescriptor fromLegacyRoutingKey(String providedRoutingKey)
A util to convert the legacy representation of a route (a single string) to aDocumentRoutesDescriptor.It will assume no routes are given if
providedRoutingKeyisnull, so it's not possible to represent the default route using this util.- Parameters:
providedRoutingKey- The provided routing key, ornull.- Returns:
- The corresponding routes, or
null.
-
currentRoute
public DocumentRouteDescriptor currentRoute()
-
previousRoutes
public Collection<DocumentRouteDescriptor> previousRoutes()
-
-