Package com.alipay.sofa.common.utils
Interface Ordered
- All Known Subinterfaces:
ConfigSource
,ManagementListener
- All Known Implementing Classes:
AbstractConfigListener
,AbstractConfigSource
,ConfigSourceCacheWrapper
,LogConfigListener
,SystemEnvConfigSource
,SystemPropertyConfigSource
public interface Ordered
- Version:
- : Ordered.java, v 0.1 2020年10月23日 10:10 上午 zhaowang Exp $
- Author:
- zhaowang
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Useful constant for the highest precedence value.static final int
Useful 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:
-
-
Method Details
-
getOrder
int getOrder()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 (somewhat analogous to Servlet
load-on-startup
values).Same order values will result in arbitrary sort positions for the affected objects.
- Returns:
- the order value
- See Also:
-