枚举 MailboxStatus
- 所有已实现的接口:
Serializable,Comparable<MailboxStatus>,java.lang.constant.Constable
邮箱事务状态 (对齐 C 层
Mailbox transaction status (aligned with C-level
ec_mbx_status_t / C# MailboxStatus).
Mailbox transaction status (aligned with C-level
ec_mbx_status_t
/ C# MailboxStatus).
数值规则 / Value semantics:
- 正值或 0: 已完成 (或尚未启动). Non-negative: completed (or not started).
- 负值: 失败, 具体语义由枚举成员描述. Negative: failure, see each member.
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明已取消 (CancellationToken 或主动取消) / Cancelled响应 counter 不匹配 / Mailbox counter check failed非法参数 / Invalid argument邮箱错误帧 (MBX ERROR 或协议层 Abort) / Mailbox error frame内存不足 / Out of memory未实现 / 不支持 / Not implemented / unsupported待处理 (事务尚未发起或仍在进行中) / Pending (not started or in progress)响应协议类型不匹配 / Response protocol type mismatch成功完成 / Success超时 (对端未在规定时间内响应) / Timeout底层工作计数器 (WKC) 不符合预期 / Working counter mismatch -
方法概要
修饰符和类型方法说明static MailboxStatusfromValue(int v) 按整型值反查枚举 (未知值返回INVALID_ARG).intgetValue()获取整型状态码 / get the integer status codestatic MailboxStatus返回带有指定名称的该类型的枚举常量。static MailboxStatus[]values()返回包含该枚举类型的常量的数组, 顺序与声明这些常量的顺序相同
-
枚举常量详细资料
-
PENDING
待处理 (事务尚未发起或仍在进行中) / Pending (not started or in progress) -
SUCCESS
成功完成 / Success -
TIMEOUT
超时 (对端未在规定时间内响应) / Timeout -
CANCELLED
已取消 (CancellationToken 或主动取消) / Cancelled -
MAILBOX_ERROR
邮箱错误帧 (MBX ERROR 或协议层 Abort) / Mailbox error frame -
PROTO_MISMATCH
响应协议类型不匹配 / Response protocol type mismatch -
COUNTER_FAIL
响应 counter 不匹配 / Mailbox counter check failed -
WKC_FAIL
底层工作计数器 (WKC) 不符合预期 / Working counter mismatch -
NO_MEMORY
内存不足 / Out of memory -
INVALID_ARG
非法参数 / Invalid argument -
NOT_IMPLEMENTED
未实现 / 不支持 / Not implemented / unsupported
-
-
方法详细资料
-
values
返回包含该枚举类型的常量的数组, 顺序与声明这些常量的顺序相同- 返回:
- 包含该枚举类型的常量的数组,顺序与声明这些常量的顺序相同
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getValue
public int getValue()获取整型状态码 / get the integer status code -
fromValue
按整型值反查枚举 (未知值返回INVALID_ARG).
Look up enum by its integer value (unknown values returnINVALID_ARG).
-