Package com.alipay.sofa.ark.spi.service
Interface PriorityOrdered
- All Known Subinterfaces:
ArkService,Biz,BizDeployService,ClassLoaderService,EventHandler<E>,Plugin,PluginDeployService,ServiceProvider,ServiceReference<T>,TelnetServerService
- All Known Implementing Classes:
ExtensionClass
public interface PriorityOrdered
PriorityOrdered is an interface that can be implemented by objects that
should be ordered.- Since:
- 0.4.0
- Author:
- qilong.zql
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault prioritystatic final intUseful constant for the highest precedence value.static final intUseful constant for the lowest precedence value. -
Method Summary
-
Field Details
-
HIGHEST_PRECEDENCE
static final int HIGHEST_PRECEDENCEUseful constant for the highest precedence value.- See Also:
-
LOWEST_PRECEDENCE
static final int LOWEST_PRECEDENCEUseful constant for the lowest precedence value.- See Also:
-
DEFAULT_PRECEDENCE
static final int DEFAULT_PRECEDENCEDefault priority- See Also:
-
-
Method Details
-
getPriority
int getPriority()Get the order value of this object. Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority.- Returns:
-