Package reactor.test.publisher
Enum TestPublisher.Violation
- All Implemented Interfaces:
Serializable,Comparable<TestPublisher.Violation>,Constable
- Enclosing class:
- TestPublisher<T>
Possible misbehavior for a
TestPublisher.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow termination signals to be sent several times in a row.Allow theTestPublisherto ignore cancellation signals and continue emitting signals as if the cancellation lost race against said signals.Allownextcalls to be made despite insufficient request, without triggering anIllegalStateException. -
Method Summary
Modifier and TypeMethodDescriptionstatic TestPublisher.ViolationReturns the enum constant of this type with the specified name.static TestPublisher.Violation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REQUEST_OVERFLOW
Allownextcalls to be made despite insufficient request, without triggering anIllegalStateException. -
ALLOW_NULL
-
CLEANUP_ON_TERMINATE
Allow termination signals to be sent several times in a row. This includesTestPublisher.complete(),TestPublisher.error(Throwable)andTestPublisher.emit(Object[]). -
DEFER_CANCELLATION
Allow theTestPublisherto ignore cancellation signals and continue emitting signals as if the cancellation lost race against said signals.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-