public class Infrastructure extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canCallerThreadBeBlocked() |
static void |
clearInterceptors() |
static Executor |
getDefaultExecutor() |
static ScheduledExecutorService |
getDefaultWorkerPool() |
static void |
handleDroppedException(Throwable throwable) |
static <T> Multi<T> |
onMultiCreation(Multi<T> instance) |
static <T> org.reactivestreams.Subscriber<? super T> |
onMultiSubscription(org.reactivestreams.Publisher<? extends T> instance,
org.reactivestreams.Subscriber<? super T> subscriber) |
static <T> Uni<T> |
onUniCreation(Uni<T> instance) |
static <T> UniSubscriber<? super T> |
onUniSubscription(Uni<T> instance,
UniSubscriber<? super T> subscriber) |
static void |
reloadMultiInterceptors() |
static void |
reloadUniInterceptors() |
static void |
resetCanCallerThreadBeBlockedSupplier() |
static void |
resetDroppedExceptionHandler() |
static void |
setCanCallerThreadBeBlockedSupplier(BooleanSupplier supplier)
Defines a custom caller thread blocking check supplier.
|
static void |
setCompletableFutureWrapper(UnaryOperator<CompletableFuture<?>> wrapper) |
static void |
setDefaultExecutor()
Configure or reset the executors.
|
static void |
setDefaultExecutor(Executor s) |
static void |
setDroppedExceptionHandler(Consumer<Throwable> handler)
Defines a custom dropped exception handler.
|
static <T> CompletableFuture<T> |
wrapCompletableFuture(CompletableFuture<T> future) |
public static void setDefaultExecutor()
public static void setDefaultExecutor(Executor s)
public static ScheduledExecutorService getDefaultWorkerPool()
public static Executor getDefaultExecutor()
public static <T> UniSubscriber<? super T> onUniSubscription(Uni<T> instance, UniSubscriber<? super T> subscriber)
public static <T> org.reactivestreams.Subscriber<? super T> onMultiSubscription(org.reactivestreams.Publisher<? extends T> instance, org.reactivestreams.Subscriber<? super T> subscriber)
public static void setCompletableFutureWrapper(UnaryOperator<CompletableFuture<?>> wrapper)
public static <T> CompletableFuture<T> wrapCompletableFuture(CompletableFuture<T> future)
public static void handleDroppedException(Throwable throwable)
public static void setCanCallerThreadBeBlockedSupplier(BooleanSupplier supplier)
supplier
- the supplier, must not be null
and must not throw an exception or it will also be lost.public static boolean canCallerThreadBeBlocked()
public static void setDroppedExceptionHandler(Consumer<Throwable> handler)
handler
- the handler, must not be null
and must not throw an exception or it will also be lost.public static void reloadUniInterceptors()
public static void reloadMultiInterceptors()
public static void clearInterceptors()
public static void resetDroppedExceptionHandler()
public static void resetCanCallerThreadBeBlockedSupplier()
Copyright © 2019–2020 SmallRye. All rights reserved.