Class ConsulConstants


  • public class ConsulConstants
    extends Object
    • Field Detail

      • CONSUL_TAG_LIGHT_PROTOCOL

        public static final String CONSUL_TAG_LIGHT_PROTOCOL
        Light java protocol prefix in consul tag
        See Also:
        Constant Field Values
      • CONSUL_TAG_LIGHT_URL

        public static final String CONSUL_TAG_LIGHT_URL
        Light java url prefix in consul tag
        See Also:
        Constant Field Values
      • DEFAULT_PORT

        public static int DEFAULT_PORT
        Default consul agent port
      • INTERVAL

        public static String INTERVAL
        Service Check Interval
      • DEREGISTER_AFTER

        public static String DEREGISTER_AFTER
        Service TCP Check Deregister After
      • TTL

        public static int TTL
        Service Time To Live in second. If there is no heart beat with TTL, the service will be marked as unavailable.
      • HEARTBEAT_CIRCLE

        public static int HEARTBEAT_CIRCLE
        Heart beat circle,2/3 of ttl
      • MAX_SWITCHER_CHECK_TIMES

        public static int MAX_SWITCHER_CHECK_TIMES
        Maximum continuous switch checks, send heart beat is this number is exceeded.
      • SWITCHER_CHECK_CIRCLE

        public static int SWITCHER_CHECK_CIRCLE
        Switcher change rate
      • DEFAULT_LOOKUP_INTERVAL

        public static int DEFAULT_LOOKUP_INTERVAL
        consul service lookup interval in millisecond
      • CONSUL_BLOCK_TIME_MINUTES

        public static int CONSUL_BLOCK_TIME_MINUTES
        consul block, max block time in minute
      • CONSUL_BLOCK_TIME_SECONDS

        public static long CONSUL_BLOCK_TIME_SECONDS
        consul block max block time in second
    • Constructor Detail

      • ConsulConstants

        public ConsulConstants()