| 程序包 | 说明 |
|---|---|
| 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 collection.parallelStream().forEach(action) except that
(1) this method is asynchronous,
(2) an executor can be passed to this method, and
(3) the action can throw a checked exception.
|
| 构造器和说明 |
|---|
JvmPauseMonitor(Object name,
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.