类 Constants
- java.lang.Object
-
- network.nerve.core.rpc.info.Constants
-
public class Constants extends Object
WebsocketTool的常量 Constants of WebsocketTool- 作者:
- tangyi
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringADMIN接口权限级别 专门为管理员设计的特定接口.static StringBOOLEAN_FALSENULS2.0中的标准,用0代表false Standard in NULS 2.0, 0 for falsestatic StringBOOLEAN_TRUENULS2.0中的标准,用1代表true Standard in NULS 2.0, 1 for truestatic StringCHAIN_ID调用远程方法时,用以传输链ID When calling a remote method, the parameter name used to transfer the chain idstatic StringCMD_DUPLICATEstatic StringCMD_NOT_FOUNDstatic intEXECUTE_AND_KEEP收到Request请求后,根据属性判断如何执行 1:执行Request,并保留等待下次执行static intEXECUTE_AND_REMOVE收到Request请求后,根据属性判断如何执行 2:执行Request,然后丢弃static longINTERVAL_TIMEMILLIS循环暂停时间 Loop pause timestatic StringKEY_IP用以保存IP地址的参数名 The parameter name used to save the IP addressstatic StringKEY_PORT用以保存端口的参数名 The parameter name used to save the portstatic longMILLIS_PER_SECOND1秒 = 1000毫秒 One second = 1000 millisecondsstatic StringPARAM_NULLstatic StringPARAM_TYPE_BYTE参数类型 Parameter typestatic StringPARAM_TYPE_DOUBLEstatic StringPARAM_TYPE_FLOATstatic StringPARAM_TYPE_INTstatic StringPARAM_TYPE_LONGstatic StringPARAM_TYPE_SHORTstatic StringPARAM_WRONG_FORMATstatic StringPARAM_WRONG_RANGEstatic StringPRIVATE接口权限级别 只有模块间内部才能调用的接口static longPROCESSOR_INTERVAL_TIMEMILLIS定时任务处理器循环间隔时间 Timed task processor cycle intervalstatic StringPUBLIC接口权限级别 第三方应用/平台也能调用的公开接口static intQUEUE_SIZEstatic StringRANGE_REGEX参数验证正则表达式 Parametric Verification Regular Expressionsstatic StringRESPONSE_TIMEOUTstatic intSKIP_AND_KEEP收到Request请求后,根据属性判断如何执行 3:不执行Request,但是保留等待下次执行static intSKIP_AND_REMOVE收到Request请求后,根据属性判断如何执行 4:不执行Request,并且丢弃static ExecutorServiceTHREAD_POOL处理待处理消息的线程池 Thread pool for processing messages to be processedstatic intTHREAD_POOL_SIZEstatic longTIMEOUT_TIMEMILLIS超时毫秒数(1分钟) Timeout millisecond(1 minute)static intTRY_COUNTstatic longUNSUBSCRIBE_TIMEMILLIS已过时。static StringVERSION_KEY_STR调用远程方法时,用以传输版本号的参数名 When calling a remote method, the parameter name used to transfer the version numberstatic StringZERO
-
-
-
字段详细资料
-
MILLIS_PER_SECOND
public static final long MILLIS_PER_SECOND
1秒 = 1000毫秒 One second = 1000 milliseconds- 另请参阅:
- 常量字段值
-
INTERVAL_TIMEMILLIS
public static final long INTERVAL_TIMEMILLIS
循环暂停时间 Loop pause time- 另请参阅:
- 常量字段值
-
PROCESSOR_INTERVAL_TIMEMILLIS
public static final long PROCESSOR_INTERVAL_TIMEMILLIS
定时任务处理器循环间隔时间 Timed task processor cycle interval- 另请参阅:
- 常量字段值
-
TIMEOUT_TIMEMILLIS
public static final long TIMEOUT_TIMEMILLIS
超时毫秒数(1分钟) Timeout millisecond(1 minute)- 另请参阅:
- 常量字段值
-
UNSUBSCRIBE_TIMEMILLIS
@Deprecated public static final long UNSUBSCRIBE_TIMEMILLIS
已过时。取消订阅的常量,已经无用 Constants for unsubscribed, it's useless.- 另请参阅:
- 常量字段值
-
VERSION_KEY_STR
public static final String VERSION_KEY_STR
调用远程方法时,用以传输版本号的参数名 When calling a remote method, the parameter name used to transfer the version number- 另请参阅:
- 常量字段值
-
CHAIN_ID
public static final String CHAIN_ID
调用远程方法时,用以传输链ID When calling a remote method, the parameter name used to transfer the chain id- 另请参阅:
- 常量字段值
-
KEY_IP
public static final String KEY_IP
用以保存IP地址的参数名 The parameter name used to save the IP address- 另请参阅:
- 常量字段值
-
KEY_PORT
public static final String KEY_PORT
用以保存端口的参数名 The parameter name used to save the port- 另请参阅:
- 常量字段值
-
PUBLIC
public static final String PUBLIC
接口权限级别 第三方应用/平台也能调用的公开接口Interface permission level A public interface that third-party applications/platforms can call
- 另请参阅:
- 常量字段值
-
PRIVATE
public static final String PRIVATE
接口权限级别 只有模块间内部才能调用的接口Interface permission level An interface that can only be invoked internally between modules
- 另请参阅:
- 常量字段值
-
ADMIN
public static final String ADMIN
接口权限级别 专门为管理员设计的特定接口.Interface permission level A Specific Interface Designed for Administrators
- 另请参阅:
- 常量字段值
-
EXECUTE_AND_KEEP
public static final 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
- 另请参阅:
- 常量字段值
-
EXECUTE_AND_REMOVE
public static final 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
- 另请参阅:
- 常量字段值
-
SKIP_AND_KEEP
public static final 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
- 另请参阅:
- 常量字段值
-
SKIP_AND_REMOVE
public static final 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
- 另请参阅:
- 常量字段值
-
BOOLEAN_TRUE
public static final String BOOLEAN_TRUE
NULS2.0中的标准,用1代表true Standard in NULS 2.0, 1 for true- 另请参阅:
- 常量字段值
-
BOOLEAN_FALSE
public static final String BOOLEAN_FALSE
NULS2.0中的标准,用0代表false Standard in NULS 2.0, 0 for false- 另请参阅:
- 常量字段值
-
THREAD_POOL
public static final ExecutorService THREAD_POOL
处理待处理消息的线程池 Thread pool for processing messages to be processed
-
RANGE_REGEX
public static final String RANGE_REGEX
参数验证正则表达式 Parametric Verification Regular Expressions- 另请参阅:
- 常量字段值
-
TRY_COUNT
public static final int TRY_COUNT
- 另请参阅:
- 常量字段值
-
THREAD_POOL_SIZE
public static final int THREAD_POOL_SIZE
-
QUEUE_SIZE
public static final int QUEUE_SIZE
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
nextSequence
public static String nextSequence()
获取下一个messageId Get the next messageId
-
-