Class AsyncSuppliers


  • public final class AsyncSuppliers
    extends Object
    • Constructor Detail

      • AsyncSuppliers

        public AsyncSuppliers()
    • Method Detail

      • reuse

        @Contract(pure=true)
        @NotNull
        public static <T> @NotNull AsyncSupplier<T> reuse​(@NotNull
                                                          @NotNull AsyncSupplier<? extends T> actual)
      • coalesce

        @Contract(pure=true)
        @NotNull
        public static <T> @NotNull AsyncSupplier<T> coalesce​(@NotNull
                                                             @NotNull AsyncSupplier<T> actual)
      • buffer

        @Contract(pure=true)
        @NotNull
        public static <T> @NotNull AsyncSupplier<T> buffer​(@NotNull
                                                           @NotNull AsyncSupplier<T> actual)
      • buffer

        @Contract(pure=true)
        @NotNull
        public static <T> @NotNull AsyncSupplier<T> buffer​(int maxParallelCalls,
                                                           int maxBufferedCalls,
                                                           @NotNull
                                                           @NotNull AsyncSupplier<T> actual)
      • prefetch

        @Contract(pure=true)
        public static <T> AsyncSupplier<T> prefetch​(int count,
                                                    @NotNull
                                                    @NotNull AsyncSupplier<? extends T> asyncSupplier)
      • prefetch

        @Contract(pure=true)
        public static <T> AsyncSupplier<T> prefetch​(int count,
                                                    @NotNull
                                                    @NotNull AsyncSupplier<? extends T> actualSupplier,
                                                    @NotNull
                                                    @NotNull AsyncSupplier<? extends T> prefetchSupplier)