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 StringCONFIG_NAMEconsul configuration file namestatic intCONSUL_BLOCK_TIME_MINUTESconsul block, max block time in minutestatic longCONSUL_BLOCK_TIME_SECONDSconsul block max block time in secondstatic StringCONSUL_LIGHT_COMMANDLight java command in consulstatic StringCONSUL_PROCESS_HEARTBEAT_SWITCHERDeprecated.static StringCONSUL_TAG_LIGHT_PROTOCOLLight java protocol prefix in consul tagstatic StringCONSUL_TAG_LIGHT_URLLight java url prefix in consul tagstatic intDEFAULT_LOOKUP_INTERVALconsul service lookup interval in millisecondstatic intDEFAULT_PORTDefault consul agent portstatic StringDEREGISTER_AFTERService TCP Check Deregister Afterstatic intHEARTBEAT_CIRCLEHeart beat circle,2/3 of ttlstatic StringINTERVALService Check Intervalstatic intMAX_SWITCHER_CHECK_TIMESMaximum continuous switch checks, send heart beat is this number is exceeded.static intSWITCHER_CHECK_CIRCLESwitcher change ratestatic intTTLService 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
-
-