Extract default interceptor ordinal into a constant
@@ -12,12 +12,17 @@ import io.smallrye.mutiny.subscription.UniSubscriber;
*/
public interface UniInterceptor {
+ /**
+ * Default interceptor ordinal ({@code 100}).
+ */
+ int DEFAULT_ORDINAL = 100;
+
/**
* @return the interceptor ordinal. The ordinal is used to sort the interceptor. Lower value are executed first.
* Default is 100.
*/
default int ordinal() {
- return 100;
+ return DEFAULT_ORDINAL;
}
/**
