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 Type
    Method
    Description
    @Nullable String
    Gets the route id
    void
    setRouteId(String routeId)
    Sets the route id
  • Method Details

    • getRouteId

      @Nullable String getRouteId()
      Gets the route id
    • setRouteId

      void setRouteId(String routeId)
      Sets the route id
      Parameters:
      routeId - the route id