@Internal public enum StateChangeOperation extends Enum<StateChangeOperation>
ChangelogState.| 枚举常量和说明 |
|---|
ADD
Scope: key + namespace.
|
ADD_ELEMENT
Scope: key + namespace + element (e.g. user list append).
|
ADD_OR_UPDATE_ELEMENT
Scope: key + namespace + element (e.g. user map key put).
|
CLEAR
Scope: key + namespace.
|
MERGE_NS
Scope: key + namespace, also affecting other (source) namespaces.
|
METADATA
State metadata (name, serializers, etc.).
|
REMOVE_ELEMENT
Scope: key + namespace + element (e.g. user map remove or iterator remove).
|
REMOVE_FIRST_ELEMENT
Scope: key + namespace, first element (e.g. priority queue poll).
|
SET
Scope: key + namespace.
|
SET_INTERNAL
Scope: key + namespace.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static StateChangeOperation |
byCode(byte opCode) |
byte |
getCode() |
static StateChangeOperation |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static StateChangeOperation[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final StateChangeOperation CLEAR
public static final StateChangeOperation SET
public static final StateChangeOperation SET_INTERNAL
public static final StateChangeOperation ADD
public static final StateChangeOperation MERGE_NS
public static final StateChangeOperation ADD_ELEMENT
public static final StateChangeOperation ADD_OR_UPDATE_ELEMENT
public static final StateChangeOperation REMOVE_ELEMENT
public static final StateChangeOperation REMOVE_FIRST_ELEMENT
public static final StateChangeOperation METADATA
public static StateChangeOperation[] values()
for (StateChangeOperation c : StateChangeOperation.values()) System.out.println(c);
public static StateChangeOperation valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static StateChangeOperation byCode(byte opCode)
public byte getCode()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.