Uses of Class
org.apache.bookkeeper.common.util.OrderedScheduler
-
Packages that use OrderedScheduler Package Description org.apache.bookkeeper.client BookKeeper Client.org.apache.bookkeeper.common.concurrent Utility classes commonly useful in concurrent programming.org.apache.bookkeeper.common.util defines the utilities for allocator used across the project. -
-
Uses of OrderedScheduler in org.apache.bookkeeper.client
Fields in org.apache.bookkeeper.client declared as OrderedScheduler Modifier and Type Field Description (package private) OrderedScheduler
BookKeeper. scheduler
Methods in org.apache.bookkeeper.client that return OrderedScheduler Modifier and Type Method Description (package private) OrderedScheduler
BookKeeper. getScheduler()
OrderedScheduler
ClientContext. getScheduler()
-
Uses of OrderedScheduler in org.apache.bookkeeper.common.concurrent
Methods in org.apache.bookkeeper.common.concurrent with parameters of type OrderedScheduler Modifier and Type Method Description static <T> java.util.concurrent.CompletableFuture<T>
FutureUtils. whenCompleteAsync(java.util.concurrent.CompletableFuture<T> future, java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action, OrderedScheduler scheduler, java.lang.Object scheduleKey)
Completing thefuture
in the thread in the scheduler identified by thescheduleKey
.static <T> java.util.concurrent.CompletableFuture<T>
FutureUtils. within(java.util.concurrent.CompletableFuture<T> promise, long timeout, java.util.concurrent.TimeUnit unit, java.lang.Throwable cause, OrderedScheduler scheduler, java.lang.Object key)
Raise an exception to the promise within a given timeout period. -
Uses of OrderedScheduler in org.apache.bookkeeper.common.util
Methods in org.apache.bookkeeper.common.util that return OrderedScheduler Modifier and Type Method Description OrderedScheduler
OrderedScheduler.SchedulerBuilder. build()
Methods in org.apache.bookkeeper.common.util with parameters of type OrderedScheduler Modifier and Type Method Description static <ReturnT> java.util.concurrent.CompletableFuture<ReturnT>
Retries. run(java.util.stream.Stream<java.lang.Long> backoffs, java.util.function.Predicate<java.lang.Throwable> retryPredicate, java.util.function.Supplier<java.util.concurrent.CompletableFuture<ReturnT>> task, OrderedScheduler scheduler)
Retry a giventask
on failures.static <ReturnT> java.util.concurrent.CompletableFuture<ReturnT>
Retries. run(java.util.stream.Stream<java.lang.Long> backoffs, java.util.function.Predicate<java.lang.Throwable> retryPredicate, java.util.function.Supplier<java.util.concurrent.CompletableFuture<ReturnT>> task, OrderedScheduler scheduler, java.lang.Object key)
Retry a giventask
on failures.
-