public enum ScopeEnum extends Enum<ScopeEnum>
| 枚举常量和说明 |
|---|
dataCenter
dataCenter scope: only can receive pub list at same dataCenter (multi zone)
|
global
global scope: can receive pub list at all dataCenter (multi zone)
|
zone
zone scope: only can receive pub list at same zone
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
contains(String name) |
static ScopeEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ScopeEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ScopeEnum zone
public static final ScopeEnum dataCenter
public static final ScopeEnum global
public static ScopeEnum[] values()
for (ScopeEnum c : ScopeEnum.values()) System.out.println(c);
public static ScopeEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static boolean contains(String name)
Copyright © 2023 The Ant Financial. All rights reserved.