Class UniJoin.JoinFirstStrategy<T>

    • Method Detail

      • usingConcurrencyOf

        @CheckReturnValue
        public UniJoin.JoinFirstStrategyTerminal<T> usingConcurrencyOf​(int limit)
        Limit the number of concurrent upstream subscriptions.

        When not specified all upstream Uni are being subscribed when the joining Uni is subscribed.

        Setting a limit is useful when you have a large number of Uni to join and their simultaneous subscriptions might overwhelm resources (e.g., database connections, etc).

        Parameters:
        limit - the concurrency limit, must be strictly positive
        Returns:
        an object to conclude the join strategy
      • toTerminate

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