| 程序包 | 说明 |
|---|---|
| org.apache.ratis.util | |
| org.apache.ratis.util.function |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E,THROWABLE extends Throwable> |
ConcurrentUtils.accept(CheckedConsumer<? super E,THROWABLE> action,
E element,
CompletableFuture<E> f) |
static <E,THROWABLE extends Throwable> |
ConcurrentUtils.parallelForEachAsync(Collection<E> collection,
CheckedConsumer<? super E,THROWABLE> action,
Executor executor)
The same as parallelForEachAsync(collection.stream(), collection.size(), action, executor).
|
static <THROWABLE extends Throwable> |
ConcurrentUtils.parallelForEachAsync(int size,
CheckedConsumer<Integer,THROWABLE> action,
Executor executor)
The same as parallelForEachAsync(collection.stream(), collection.size(), action, executor).
|
static <E,THROWABLE extends Throwable> |
ConcurrentUtils.parallelForEachAsync(Stream<E> stream,
int size,
CheckedConsumer<? super E,THROWABLE> action,
Executor executor)
The same as
Collection.parallelStream().forEach(action) except that
(1) this method is asynchronous,
(2) this method has an executor parameter, and
(3) the action can throw a checked exception. |
JvmPauseMonitor.Builder |
JvmPauseMonitor.Builder.setHandler(CheckedConsumer<TimeDuration,IOException> handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <INPUT,THROWABLE extends Throwable> |
CheckedConsumer.asCheckedFunction(CheckedConsumer<INPUT,THROWABLE> consumer) |
Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.