Interface Ordered

All Known Subinterfaces:
BulkTypeConverters, CamelClusterService, CamelContextCustomizer, CamelPreemptiveClusterService, ComponentCustomizer, DataFormatCustomizer, HealthCheck, LanguageCustomizer, ManagementInterceptStrategy.InstrumentationProcessor<T>

public interface Ordered
Implemented by objects that carry an explicit ordering position within a sorted collection.

Camel uses this interface wherever the evaluation or application sequence matters: Processor chains, interceptors, LifecycleStrategy callbacks, and bean-method resolution all sort their participants by getOrder(). Lower values run first; HIGHEST (Integer.MIN_VALUE) gives the absolute earliest slot and LOWEST gives a near-last slot (values above LOWEST are reserved for internal Camel use).

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The highest precedence
    static final int
    The lowest precedence
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the order.
  • Field Details

  • Method Details

    • getOrder

      int getOrder()
      Gets the order.

      Use low numbers for higher priority. Normally the sorting will start from 0 and move upwards. So if you want to be last then use Integer.MAX_VALUE or eg LOWEST.

      Returns:
      the order