Enum Class ParallelFailureHandling

java.lang.Object
java.lang.Enum<ParallelFailureHandling>
io.reactivex.rxjava3.parallel.ParallelFailureHandling
All Implemented Interfaces:
BiFunction<Long,Throwable,ParallelFailureHandling>, Serializable, Comparable<ParallelFailureHandling>, Constable

public enum ParallelFailureHandling extends Enum<ParallelFailureHandling> implements BiFunction<Long,Throwable,ParallelFailureHandling>
Enumerations for handling failure within a parallel operator.

History: 2.0.8 - experimental

Since:
2.2
  • Enum Constant Details

  • Constructor Details

    • ParallelFailureHandling

      private ParallelFailureHandling()
  • Method Details

    • values

      public static ParallelFailureHandling[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ParallelFailureHandling valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • apply

      public ParallelFailureHandling apply(Long t1, Throwable t2)
      Description copied from interface: BiFunction
      Calculate a value based on the input values.
      Specified by:
      apply in interface BiFunction<Long,Throwable,ParallelFailureHandling>
      Parameters:
      t1 - the first value
      t2 - the second value
      Returns:
      the result value