public enum ChatRoomQueueChangeType extends java.lang.Enum<ChatRoomQueueChangeType>
枚举常量和说明 |
---|
BATCH_OFFER
BATCH_OFFER : 批量新增或变更队列元素
|
BATCH_UPDATE
BATCH_UPDATE : 批量更新队列元素
|
DROP
DROP: 清空所有队列元素
|
OFFER
OFFER:新增队列元素
|
PARTCLEAR
PARTCLEAR: 部分清理操作(发生在提交元素的用户掉线时,清理这个用户对应的key)
|
POLL
POLL: 移除队列元素
|
undefined
未定义类型
|
限定符和类型 | 方法和说明 |
---|---|
int |
getValue() |
static ChatRoomQueueChangeType |
typeOfValue(int value) |
static ChatRoomQueueChangeType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ChatRoomQueueChangeType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ChatRoomQueueChangeType undefined
public static final ChatRoomQueueChangeType OFFER
public static final ChatRoomQueueChangeType POLL
public static final ChatRoomQueueChangeType DROP
public static final ChatRoomQueueChangeType PARTCLEAR
public static final ChatRoomQueueChangeType BATCH_UPDATE
public static final ChatRoomQueueChangeType BATCH_OFFER
public static ChatRoomQueueChangeType[] values()
for (ChatRoomQueueChangeType c : ChatRoomQueueChangeType.values()) System.out.println(c);
public static ChatRoomQueueChangeType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getValue()
public static ChatRoomQueueChangeType typeOfValue(int value)