Annotation Type Order
@Target(METHOD) @Retention(RUNTIME) @Documented @API(status=EXPERIMENTAL, since="5.4") public @interface Order
@Orderis a method-level annotation that is used to configure the order in which the annotated method should be executed relative to other methods of the same category.
@Orderis not explicitly declared on a method, the default order value assigned to the method is
- See Also:
Required Element Summary
Required Elements Modifier and Type Required Element Description
valueThe order value for the annotated method.
int valueThe order value for the annotated method.
Methods are ordered based on priority where a lower value has greater priority than a higher value. For example,
Integer.MAX_VALUEhas the lowest priority.