public class Constants extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ADMIN
接口权限级别
专门为管理员设计的特定接口.
|
static String |
BOOLEAN_FALSE
NULS2.0中的标准,用0代表false
Standard in NULS 2.0, 0 for false
|
static String |
BOOLEAN_TRUE
NULS2.0中的标准,用1代表true
Standard in NULS 2.0, 1 for true
|
static String |
CHAIN_ID
调用远程方法时,用以传输链ID
When calling a remote method, the parameter name used to transfer the chain id
|
static String |
CMD_DUPLICATE |
static String |
CMD_NOT_FOUND |
static int |
EXECUTE_AND_KEEP
收到Request请求后,根据属性判断如何执行
1:执行Request,并保留等待下次执行
After receiving the Request, determine how to execute it based on the attributes
1: Execute Request and keep waiting for the next execution
|
static int |
EXECUTE_AND_REMOVE
收到Request请求后,根据属性判断如何执行
2:执行Request,然后丢弃
After receiving the Request, determine how to execute it based on the attributes
2: Execute Request and discard it
|
static long |
INTERVAL_TIMEMILLIS
循环暂停时间
Loop pause time
|
static String |
KEY_IP
用以保存IP地址的参数名
The parameter name used to save the IP address
|
static String |
KEY_PORT
用以保存端口的参数名
The parameter name used to save the port
|
static long |
MILLIS_PER_SECOND
1秒 = 1000毫秒
One second = 1000 milliseconds
|
static String |
PARAM_NULL |
static String |
PARAM_TYPE_BYTE
参数类型
Parameter type
|
static String |
PARAM_TYPE_DOUBLE |
static String |
PARAM_TYPE_FLOAT |
static String |
PARAM_TYPE_INT |
static String |
PARAM_TYPE_LONG |
static String |
PARAM_TYPE_SHORT |
static String |
PARAM_WRONG_FORMAT |
static String |
PARAM_WRONG_RANGE |
static String |
PRIVATE
接口权限级别
只有模块间内部才能调用的接口
Interface permission level
An interface that can only be invoked internally between modules
|
static long |
PROCESSOR_INTERVAL_TIMEMILLIS
定时任务处理器循环间隔时间
Timed task processor cycle interval
|
static String |
PUBLIC
接口权限级别
第三方应用/平台也能调用的公开接口
Interface permission level
A public interface that third-party applications/platforms can call
|
static int |
QUEUE_SIZE |
static String |
RANGE_REGEX
参数验证正则表达式
Parametric Verification Regular Expressions
|
static String |
RESPONSE_TIMEOUT |
static int |
SKIP_AND_KEEP
收到Request请求后,根据属性判断如何执行
3:不执行Request,但是保留等待下次执行
After receiving the Request, determine how to execute it based on the attributes
3: Do not execute Request, but keep waiting for the next execution
|
static int |
SKIP_AND_REMOVE
收到Request请求后,根据属性判断如何执行
4:不执行Request,并且丢弃
After receiving the Request, determine how to execute it based on the attributes
4: Do not execute Request, and discard it
|
static ExecutorService |
THREAD_POOL
处理待处理消息的线程池
Thread pool for processing messages to be processed
|
static int |
THREAD_POOL_SIZE |
static long |
TIMEOUT_TIMEMILLIS
超时毫秒数(1分钟)
Timeout millisecond(1 minute)
|
static int |
TRY_COUNT |
static long |
UNSUBSCRIBE_TIMEMILLIS
已过时。
|
static String |
VERSION_KEY_STR
调用远程方法时,用以传输版本号的参数名
When calling a remote method, the parameter name used to transfer the version number
|
static String |
ZERO |
public static final long MILLIS_PER_SECOND
public static final long INTERVAL_TIMEMILLIS
public static final long PROCESSOR_INTERVAL_TIMEMILLIS
public static final long TIMEOUT_TIMEMILLIS
@Deprecated public static final long UNSUBSCRIBE_TIMEMILLIS
public static final String VERSION_KEY_STR
public static final String CHAIN_ID
public static final String KEY_IP
public static final String KEY_PORT
public static final String PUBLIC
Interface permission level A public interface that third-party applications/platforms can call
public static final String PRIVATE
Interface permission level An interface that can only be invoked internally between modules
public static final String ADMIN
Interface permission level A Specific Interface Designed for Administrators
public static final int EXECUTE_AND_KEEP
After receiving the Request, determine how to execute it based on the attributes 1: Execute Request and keep waiting for the next execution
public static final int EXECUTE_AND_REMOVE
After receiving the Request, determine how to execute it based on the attributes 2: Execute Request and discard it
public static final int SKIP_AND_KEEP
After receiving the Request, determine how to execute it based on the attributes 3: Do not execute Request, but keep waiting for the next execution
public static final int SKIP_AND_REMOVE
After receiving the Request, determine how to execute it based on the attributes 4: Do not execute Request, and discard it
public static final String BOOLEAN_TRUE
public static final String BOOLEAN_FALSE
public static final ExecutorService THREAD_POOL
public static final String RANGE_REGEX
public static final int TRY_COUNT
public static final int THREAD_POOL_SIZE
public static final int QUEUE_SIZE
public static String nextSequence()
Copyright © 2021. All rights reserved.