Class UniJoin.JoinFirstStrategy<T>

  • Type Parameters:
    T - the type of the Uni values
    Enclosing class:
    UniJoin

    public static class UniJoin.JoinFirstStrategy<T>
    extends java.lang.Object
    Defines how to deal with failures while joining Uni references with UniJoin.first(List)}.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Uni<T> toTerminate()
      Forward the value or failure from the first Uni to terminate.
      Uni<T> withItem()
      Forward the value from the first Uni to terminate with a value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toTerminate

        @CheckReturnValue
        public Uni<T> toTerminate()
        Forward the value or failure from the first Uni to terminate.
        Returns:
        a new Uni
      • withItem

        @CheckReturnValue
        public Uni<T> withItem()
        Forward the value from the first Uni to terminate with a value.

        When all Uni references fail then failures are collected into a CompositeException, which is then forwarded by the returned Uni.

        Returns:
        a new Uni