| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Method and Description |
|---|---|
static <R,E extends Throwable> |
Fn.Fnn.c2r(Throwables.Callable<R,E> callable) |
static <E extends Exception> |
Fn.Fnn.emptyAction() |
static <E extends Throwable> |
Fn.Fnn.jr2r(Runnable runnable) |
static <E extends Throwable> |
Fn.Fnn.r(Throwables.Runnable<E> runnable) |
static <E extends Throwable> |
Fn.Fnn.rr(Runnable runnable) |
static <E extends Throwable> |
Fn.Fnn.runnable(Throwables.Runnable<E> runnable)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static List<ContinuableFuture<Void>> |
N.asyncExecute(Throwables.Runnable<? extends Exception>... commands) |
static ContinuableFuture<Void> |
N.asyncExecute(Throwables.Runnable<? extends Exception> command) |
static ContinuableFuture<Void> |
N.asyncExecute(Throwables.Runnable<? extends Exception> command,
Executor executor) |
static ContinuableFuture<Void> |
N.asyncExecute(Throwables.Runnable<? extends Exception> cmd,
int retryTimes,
long retryIntervalInMillis,
Predicate<? super Exception> retryCondition) |
static ContinuableFuture<Void> |
N.asyncExecute(Throwables.Runnable<? extends Exception> command,
long delayInMillis) |
List<ContinuableFuture<Void>> |
AsyncExecutor.execute(Throwables.Runnable<? extends Exception>... commands)
Deprecated.
|
ContinuableFuture<Void> |
AsyncExecutor.execute(Throwables.Runnable<? extends Exception> command) |
ContinuableFuture<Void> |
AsyncExecutor.execute(Throwables.Runnable<? extends Exception> action,
int retryTimes,
long retryInterval,
Predicate<? super Exception> retryCondition) |
static void |
N.execute(Throwables.Runnable<? extends Exception> cmd,
int retryTimes,
long retryInterval,
Predicate<? super Exception> retryCondition) |
ContinuableFuture<Void> |
AsyncExecutor.execute(Throwables.Runnable<? extends Exception> command,
Runnable onComplete) |
static <E extends Exception> |
N.forEach(int startInclusive,
int endExclusive,
int step,
Throwables.Runnable<E> action) |
static <E extends Exception> |
N.forEach(int startInclusive,
int endExclusive,
Throwables.Runnable<E> action) |
<E2 extends Exception,E3 extends Exception> |
ExceptionalStream.forEach(Throwables.Consumer<? super T,E2> action,
Throwables.Runnable<E3> onComplete) |
<E extends Exception,E2 extends Exception> |
u.Nullable.ifNotNullOrElse(Throwables.Consumer<? super T,E> action,
Throwables.Runnable<E2> emptyAction)
If not null or else.
|
static <E1 extends Exception,E2 extends Exception> |
N.ifOrElse(boolean b,
Throwables.Runnable<E1> actionForTrue,
Throwables.Runnable<E2> actionForFalse)
If or else.
|
static <E1 extends Exception,E2 extends Exception> |
N.ifOrElse(boolean b,
Throwables.Runnable<E1> actionForTrue,
Throwables.Runnable<E2> actionForFalse)
If or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalBoolean.ifPresentOrElse(Throwables.BooleanConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalByte.ifPresentOrElse(Throwables.ByteConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalChar.ifPresentOrElse(Throwables.CharConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.Optional.ifPresentOrElse(Throwables.Consumer<? super T,E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.Nullable.ifPresentOrElse(Throwables.Consumer<? super T,E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalDouble.ifPresentOrElse(Throwables.DoubleConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalFloat.ifPresentOrElse(Throwables.FloatConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalInt.ifPresentOrElse(Throwables.IntConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalLong.ifPresentOrElse(Throwables.LongConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
<E extends Exception,E2 extends Exception> |
u.OptionalShort.ifPresentOrElse(Throwables.ShortConsumer<E> action,
Throwables.Runnable<E2> emptyAction)
If present or else.
|
ExceptionalStream<T,E> |
ExceptionalStream.onClose(Throwables.Runnable<? extends E> closeHandler)
=======
=======
>>>>>>> .merge-right.r2804
>>>>>>> .merge-right.r2926
|
<E extends Throwable> |
If.OrElse.orElse(Throwables.Runnable<E> cmd) |
static <E extends Throwable> |
Fn.Fnn.r(Throwables.Runnable<E> runnable) |
static <E extends Throwable> |
Fn.Fnn.r2c(Throwables.Runnable<E> runnable) |
static <R,E extends Throwable> |
Fn.Fnn.r2c(Throwables.Runnable<E> runnable,
R valueToReturn) |
static <E extends Throwable> |
Fn.Fnn.r2jr(Throwables.Runnable<E> runnable) |
static <E extends Exception> |
Fn.rr(Throwables.Runnable<E> runnbale) |
static Profiler.MultiLoopsStatistics |
Profiler.run(int threadNum,
int loopNum,
int roundNum,
String label,
Throwables.Runnable<? extends Exception> command) |
static Profiler.MultiLoopsStatistics |
Profiler.run(int threadNum,
int loopNum,
int roundNum,
Throwables.Runnable<? extends Exception> command) |
static Profiler.MultiLoopsStatistics |
Profiler.run(int threadNum,
long threadDelay,
int loopNum,
long loopDelay,
int roundNum,
String label,
Throwables.Runnable<? extends Exception> command) |
void |
Retry.run(Throwables.Runnable<? extends Exception> cmd) |
static void |
Try.run(Throwables.Runnable<? extends Exception> cmd) |
static void |
Try.run(Throwables.Runnable<? extends Exception> cmd,
Consumer<? super Exception> actionOnError) |
static void |
Throwables.run(Throwables.Runnable<? extends Throwable> cmd) |
static void |
Throwables.run(Throwables.Runnable<? extends Throwable> cmd,
Consumer<? super Throwable> actionOnError) |
static <E extends Exception> |
ContinuableFuture.run(Throwables.Runnable<E> action) |
<E extends Throwable> |
Synchronized.run(Throwables.Runnable<E> cmd) |
static <E extends Exception> |
ContinuableFuture.run(Throwables.Runnable<E> action,
Executor executor) |
static <T,E extends Throwable> |
Synchronized.run(T mutex,
Throwables.Runnable<E> cmd) |
<E extends Exception> |
ContinuableFuture.runAfterBoth(ContinuableFuture<?> other,
Throwables.Runnable<E> action)
Run after both.
|
<E extends Exception> |
ContinuableFuture.runAfterEither(ContinuableFuture<?> other,
Throwables.Runnable<E> action)
Run after either.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4,
Throwables.Runnable<? extends Exception> command5)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4,
Throwables.Runnable<? extends Exception> command5)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4,
Throwables.Runnable<? extends Exception> command5)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4,
Throwables.Runnable<? extends Exception> command5)
Executes and complete the input commands in parallel.
|
static void |
N.runInParallel(Throwables.Runnable<? extends Exception> command,
Throwables.Runnable<? extends Exception> command2,
Throwables.Runnable<? extends Exception> command3,
Throwables.Runnable<? extends Exception> command4,
Throwables.Runnable<? extends Exception> command5)
Executes and complete the input commands in parallel.
|
static <E extends Throwable> |
Fn.Fnn.runnable(Throwables.Runnable<E> runnable)
Deprecated.
|
static void |
N.runUninterruptibly(Throwables.Runnable<InterruptedException> cmd)
Note: Copied from Google Guava under Apache License v2.0
If a thread is interrupted during such a call, the call continues to block until the result is available or the timeout elapses, and only then re-interrupts the thread. |
<E extends Throwable> |
If.then(Throwables.Runnable<E> cmd) |
<E extends Exception> |
ContinuableFuture.thenRun(Throwables.Runnable<E> action) |
| Modifier and Type | Method and Description |
|---|---|
static List<ContinuableFuture<Void>> |
N.asyncExecute(List<? extends Throwables.Runnable<? extends Exception>> commands) |
List<ContinuableFuture<Void>> |
AsyncExecutor.execute(List<? extends Throwables.Runnable<? extends Exception>> commands) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Runnable |
| Modifier and Type | Method and Description |
|---|---|
default <E extends Throwable> |
Runnable.toThrowable() |
Copyright © 2021. All rights reserved.