Class Infrastructure


  • public class Infrastructure
    extends java.lang.Object
    • Method Detail

      • setDefaultExecutor

        public static void setDefaultExecutor()
        Configure or reset the executors.
      • setDefaultExecutor

        public static void setDefaultExecutor​(java.util.concurrent.Executor s)
      • getDefaultWorkerPool

        public static java.util.concurrent.ScheduledExecutorService getDefaultWorkerPool()
      • getDefaultExecutor

        public static java.util.concurrent.Executor getDefaultExecutor()
      • onUniCreation

        public static <T> Uni<T> onUniCreation​(Uni<T> instance)
      • onMultiCreation

        public static <T> Multi<T> onMultiCreation​(Multi<T> instance)
      • onMultiSubscription

        public static <T> org.reactivestreams.Subscriber<? super T> onMultiSubscription​(org.reactivestreams.Publisher<? extends T> instance,
                                                                                        org.reactivestreams.Subscriber<? super T> subscriber)
      • setCompletableFutureWrapper

        public static void setCompletableFutureWrapper​(java.util.function.UnaryOperator<java.util.concurrent.CompletableFuture<?>> wrapper)
      • wrapCompletableFuture

        public static <T> java.util.concurrent.CompletableFuture<T> wrapCompletableFuture​(java.util.concurrent.CompletableFuture<T> future)
      • handleDroppedException

        public static void handleDroppedException​(java.lang.Throwable throwable)
      • setCanCallerThreadBeBlockedSupplier

        public static void setCanCallerThreadBeBlockedSupplier​(java.util.function.BooleanSupplier supplier)
        Defines a custom caller thread blocking check supplier.
        Parameters:
        supplier - the supplier, must not be null and must not throw an exception or it will also be lost.
      • canCallerThreadBeBlocked

        public static boolean canCallerThreadBeBlocked()
      • setDroppedExceptionHandler

        public static void setDroppedExceptionHandler​(java.util.function.Consumer<java.lang.Throwable> handler)
        Defines a custom dropped exception handler.
        Parameters:
        handler - the handler, must not be null and must not throw an exception or it will also be lost.
      • reloadUniInterceptors

        public static void reloadUniInterceptors()
      • reloadMultiInterceptors

        public static void reloadMultiInterceptors()
      • clearInterceptors

        public static void clearInterceptors()
      • resetDroppedExceptionHandler

        public static void resetDroppedExceptionHandler()
      • resetCanCallerThreadBeBlockedSupplier

        public static void resetCanCallerThreadBeBlockedSupplier()