Interface RouteIdAware
- All Known Subinterfaces:
ExchangeFactory, ProcessorExchangeFactory
public interface RouteIdAware
Marker for an object whose owning route id can be injected.
This gives access to the route id at runtime, so a processor or service knows which route it is associated with (for
example for logging, management, or tracing).
- Since:
- 3.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringGets the route idvoidsetRouteId(String routeId) Sets the route id
-
Method Details
-
getRouteId
@Nullable String getRouteId()Gets the route id -
setRouteId
-