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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Useful constant for the highest precedence value.
    static final int
    Useful constant for the lowest precedence value.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the order value of this object.
  • Field Details

  • 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: