public enum WaitStrategyType extends Enum<WaitStrategyType>
| 枚举常量和说明 |
|---|
BLOCKING_WAIT |
BUSY_SPIN_WAIT |
LITE_BLOCKING_WAIT |
LITE_TIMEOUT_BLOCKING_WAIT |
PHASED_BACK_OFF_WAIT |
SLEEPING_WAIT |
TIMEOUT_BLOCKING_WAIT |
YIELDING_WAIT |
| 限定符和类型 | 方法和说明 |
|---|---|
static WaitStrategyType |
parse(String name) |
static WaitStrategyType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static WaitStrategyType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final WaitStrategyType BLOCKING_WAIT
public static final WaitStrategyType LITE_BLOCKING_WAIT
public static final WaitStrategyType TIMEOUT_BLOCKING_WAIT
public static final WaitStrategyType LITE_TIMEOUT_BLOCKING_WAIT
public static final WaitStrategyType PHASED_BACK_OFF_WAIT
public static final WaitStrategyType SLEEPING_WAIT
public static final WaitStrategyType YIELDING_WAIT
public static final WaitStrategyType BUSY_SPIN_WAIT
public static WaitStrategyType[] values()
for (WaitStrategyType c : WaitStrategyType.values()) System.out.println(c);
public static WaitStrategyType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static WaitStrategyType parse(String name)
Copyright © 2018. All rights reserved.