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 -
Method Summary
-
Field Details
-
HIGHEST
static final int HIGHESTThe highest precedence- See Also:
-
LOWEST
static final int LOWESTThe lowest precedence- See Also:
-
-
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 useInteger.MAX_VALUEor egLOWEST.- Returns:
- the order
-