Package com.networknt.consul
Class ConsulConstants
- java.lang.Object
-
- com.networknt.consul.ConsulConstants
-
public class ConsulConstants extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_NAME
consul configuration file namestatic int
CONSUL_BLOCK_TIME_MINUTES
consul block, max block time in minutestatic long
CONSUL_BLOCK_TIME_SECONDS
consul block max block time in secondstatic String
CONSUL_LIGHT_COMMAND
Light java command in consulstatic String
CONSUL_PROCESS_HEARTBEAT_SWITCHER
Deprecated.static String
CONSUL_TAG_LIGHT_PROTOCOL
Light java protocol prefix in consul tagstatic String
CONSUL_TAG_LIGHT_URL
Light java url prefix in consul tagstatic int
DEFAULT_LOOKUP_INTERVAL
consul service lookup interval in millisecondstatic int
DEFAULT_PORT
Default consul agent portstatic String
DEREGISTER_AFTER
Service TCP Check Deregister Afterstatic int
HEARTBEAT_CIRCLE
Heart beat circle,2/3 of ttlstatic String
INTERVAL
Service Check Intervalstatic int
MAX_SWITCHER_CHECK_TIMES
Maximum continuous switch checks, send heart beat is this number is exceeded.static int
SWITCHER_CHECK_CIRCLE
Switcher change ratestatic int
TTL
Service Time To Live in second.
-
Constructor Summary
Constructors Constructor Description ConsulConstants()
-
-
-
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
-
CONSUL_LIGHT_COMMAND
public static final String CONSUL_LIGHT_COMMAND
Light java command in consul- 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_PROCESS_HEARTBEAT_SWITCHER
@Deprecated public static final String CONSUL_PROCESS_HEARTBEAT_SWITCHER
Deprecated.consul heart beat switcher- See Also:
- Constant Field Values
-
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
-
CONFIG_NAME
public static final String CONFIG_NAME
consul configuration file name- See Also:
- Constant Field Values
-
-