Enum Reactor

    • Method Detail

      • values

        public static Reactor[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Reactor c : Reactor.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Reactor valueOf​(String name)
        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 name
        NullPointerException - if the argument is null
      • wrap

        public static <T> Mono<T> wrap​(Request<?> request,
                                       CompletableFuture<T> response,
                                       boolean propagateCancellation)
        Wraps a Request and returns it in a Mono.
        Parameters:
        request - the request to wrap.
        response - the full response to wrap, might not be the same as in the request.
        propagateCancellation - if a cancelled/unsubscribed mono should also cancel the request.
        Returns:
        the mono that wraps the request.