public static enum TestPublisher.Violation extends java.lang.Enum<TestPublisher.Violation>
TestPublisher
.枚举常量和说明 |
---|
ALLOW_NULL
|
CLEANUP_ON_TERMINATE
Allow termination signals to be sent several times in a row.
|
DEFER_CANCELLATION
Allow the
TestPublisher to ignore cancellation signals and continue
emitting signals as if the cancellation lost race against said signals. |
REQUEST_OVERFLOW
Allow
next calls to be made
despite insufficient request, without triggering an IllegalStateException . |
限定符和类型 | 方法和说明 |
---|---|
static TestPublisher.Violation |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static TestPublisher.Violation[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TestPublisher.Violation REQUEST_OVERFLOW
next
calls to be made
despite insufficient request, without triggering an IllegalStateException
.public static final TestPublisher.Violation ALLOW_NULL
public static final TestPublisher.Violation CLEANUP_ON_TERMINATE
TestPublisher.complete()
, TestPublisher.error(Throwable)
and
TestPublisher.emit(Object[])
.public static final TestPublisher.Violation DEFER_CANCELLATION
TestPublisher
to ignore cancellation signals and continue
emitting signals as if the cancellation lost race against said signals.public static TestPublisher.Violation[] values()
for (TestPublisher.Violation c : TestPublisher.Violation.values()) System.out.println(c);
public static TestPublisher.Violation valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值