Uses of Interface
com.landawn.abacus.util.Throwables.Runnable
Package
Description
-
Uses of Throwables.Runnable in com.landawn.abacus.util
Modifier and TypeMethodDescriptionstatic <R,
E extends Throwable>
Throwables.Runnable<E>Fn.Fnn.c2r
(Throwables.Callable<R, E> callable) static <E extends Exception>
Throwables.Runnable<E>Fn.Fnn.emptyAction()
static <E extends Throwable>
Throwables.Runnable<E>static <E extends Throwable>
Throwables.Runnable<E>Fn.Fnn.r
(Throwables.Runnable<E> runnable) static <E extends Throwable>
Throwables.Runnable<E>Modifier and TypeMethodDescriptionstatic ContinuableFuture<Void>
N.asyncExecute
(Throwables.Runnable<? extends Exception> command) static List<ContinuableFuture<Void>>
N.asyncExecute
(Throwables.Runnable<? extends Exception>... commands) static ContinuableFuture<Void>
N.asyncExecute
(Throwables.Runnable<? extends Exception> cmd, int retryTimes, long retryIntervallInMillisInMillis, Predicate<? super Exception> retryCondition) static ContinuableFuture<Void>
N.asyncExecute
(Throwables.Runnable<? extends Exception> command, long delayInMillis) static ContinuableFuture<Void>
N.asyncExecute
(Throwables.Runnable<? extends Exception> command, Executor executor) AsyncExecutor.execute
(Throwables.Runnable<? extends Exception> command) final List<ContinuableFuture<Void>>
AsyncExecutor.execute
(Throwables.Runnable<? extends Exception>... commands) Deprecated.AsyncExecutor.execute
(Throwables.Runnable<? extends Exception> action, int retryTimes, long retryIntervallInMillis, Predicate<? super Exception> retryCondition) AsyncExecutor.execute
(Throwables.Runnable<? extends Exception> command, Runnable actionInFinal) static void
N.execute
(Throwables.Runnable<? extends Exception> cmd, int retryTimes, long retryIntervallInMillis, Predicate<? super Exception> retryCondition) CheckedStream.forEach
(Throwables.Consumer<? super T, E2> action, Throwables.Runnable<E3> onComplete) Iterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> onComplete) Iterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, long offset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> onComplete) Parse the elements in the specified iterators one by one.Iterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, long offset, long count, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> onComplete) Iterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> onComplete) Iterators.forEach
(Iterator<? extends T> iter, long offset, long count, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> onComplete) Parse the elements in the specified iterators one by one.Iterators.forEach
(Iterator<? extends T> iter, long offset, long count, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> onComplete) Iterators.forEach
(Iterator<? extends T> iter, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidN.forEach
(int startInclusive, int endExclusive, int step, Throwables.Runnable<E> action) static <E extends Exception>
voidN.forEach
(int startInclusive, int endExclusive, Throwables.Runnable<E> action) Holder.ifNotNullOrElse
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> emptyAction) If not null or else.<E extends Exception,
E2 extends Exception>
u.Nullable<T>u.Nullable.ifNotNullOrElse
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> emptyAction) If not null or else.N.ifOrElse
(boolean b, Throwables.Runnable<E1> actionForTrue, Throwables.Runnable<E2> actionForFalse) If or else.<E extends Exception,
E2 extends Exception>
u.Nullable<T>u.Nullable.ifPresentOrElse
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.Optional<T>u.Optional.ifPresentOrElse
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.OptionalBooleanu.OptionalBoolean.ifPresentOrElse
(Throwables.BooleanConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.OptionalByteu.OptionalByte.ifPresentOrElse
(Throwables.ByteConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.OptionalCharu.OptionalChar.ifPresentOrElse
(Throwables.CharConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.OptionalDoubleu.OptionalDouble.ifPresentOrElse
(Throwables.DoubleConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.OptionalFloatu.OptionalFloat.ifPresentOrElse
(Throwables.FloatConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.OptionalIntu.OptionalInt.ifPresentOrElse
(Throwables.IntConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.OptionalLongu.OptionalLong.ifPresentOrElse
(Throwables.LongConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.OptionalShortu.OptionalShort.ifPresentOrElse
(Throwables.ShortConsumer<E> action, Throwables.Runnable<E2> emptyAction) If present or else.CheckedStream.onClose
(Throwables.Runnable<? extends E> closeHandler) <E extends Throwable>
voidIf.OrElse.orElse
(Throwables.Runnable<E> cmd) IOUtil.parse
(File file, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(File file, long lineOffset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified files/directory line by line.IOUtil.parse
(File file, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified files/directory line by line.IOUtil.parse
(File file, long lineOffset, long count, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(File file, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(InputStream is, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified Reader line by line.IOUtil.parse
(InputStream is, long lineOffset, long count, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(InputStream is, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(Reader reader, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified Reader line by line.IOUtil.parse
(Reader reader, long lineOffset, long count, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(Reader reader, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(List<File> files, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(List<File> files, long lineOffset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified files/directory line by line.IOUtil.parse
(List<File> files, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified files/directory line by line.IOUtil.parse
(List<File> files, long lineOffset, long count, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) IOUtil.parse
(List<File> files, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Throwable>
Throwables.Runnable<E>Fn.Fnn.r
(Throwables.Runnable<E> runnable) static <E extends Throwable>
Throwables.Callable<Void,E> Fn.Fnn.r2c
(Throwables.Runnable<E> runnable) static <R,
E extends Throwable>
Throwables.Callable<R,E> Fn.Fnn.r2c
(Throwables.Runnable<E> runnable, R valueToReturn) Fn.Fnn.r2jr
(Throwables.Runnable<E> runnable) static Runnable
Fn.rr
(Throwables.Runnable<? extends Exception> runnbale) static ContinuableFuture<Void>
ContinuableFuture.run
(Throwables.Runnable<? extends Exception> action) static ContinuableFuture<Void>
ContinuableFuture.run
(Throwables.Runnable<? extends Exception> action, Executor executor) Profiler.run
(int threadNum, int loopNum, int roundNum, Throwables.Runnable<? extends Exception> command) Profiler.run
(int threadNum, int loopNum, int roundNum, String label, Throwables.Runnable<? extends Exception> command) 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) <E extends Throwable>
voidSynchronized.run
(Throwables.Runnable<E> cmd) static <T,
E extends Throwable>
voidSynchronized.run
(T mutex, Throwables.Runnable<E> cmd) static void
Throwables.run
(Throwables.Runnable<? extends Throwable> cmd) static void
Throwables.run
(Throwables.Runnable<? extends Throwable> cmd, Consumer<? super Throwable> actionOnError) static void
Try.run
(Throwables.Runnable<? extends Exception> cmd) static void
Try.run
(Throwables.Runnable<? extends Exception> cmd, Consumer<? super Exception> actionOnError) ContinuableFuture.runAfterBoth
(ContinuableFuture<?> other, Throwables.Runnable<? extends Exception> action) Run after both.ContinuableFuture.runAfterEither
(ContinuableFuture<?> other, Throwables.Runnable<? extends Exception> action) Run after either.ContinuableFuture.runAfterFirstSucceed
(ContinuableFuture<?> other, Throwables.Runnable<? extends Exception> action) Run after either.N.runByBatch
(Iterable<? extends T> iter, int batchSize, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> batchAction) N.runByBatch
(Iterator<? extends T> iter, int batchSize, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> batchAction) N.runByBatch
(T[] a, int batchSize, Throwables.Consumer<? super T, E> elementConsumer, Throwables.Runnable<E2> batchAction) 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, 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
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.If.then
(Throwables.Runnable<E> cmd) ContinuableFuture.thenRun
(Throwables.Runnable<? extends Exception> action) Modifier and TypeMethodDescriptionstatic List<ContinuableFuture<Void>>
N.asyncExecute
(List<? extends Throwables.Runnable<? extends Exception>> commands) static List<ContinuableFuture<Void>>
N.asyncExecute
(List<? extends Throwables.Runnable<? extends Exception>> commands, Executor executor) static ObjIterator<Void>
N.asynRun
(Collection<? extends Throwables.Runnable<? extends Exception>> commands) Executes the specified commands/tasks asynchronous and immediately returns aniterator
for iterating the result lazily.static ObjIterator<Void>
N.asynRun
(Collection<? extends Throwables.Runnable<? extends Exception>> commands, Executor executor) Executes the specified commands/tasks asynchronous and immediately returns aniterator
for iterating the result lazily.AsyncExecutor.execute
(List<? extends Throwables.Runnable<? extends Exception>> commands) static void
N.runInParallel
(Collection<? extends Throwables.Runnable<? extends Exception>> commands) Executes and complete the input commands in parallel.static void
N.runInParallel
(Collection<? extends Throwables.Runnable<? extends Exception>> commands, Executor executor) Executes and complete the input commands in parallel. -
Uses of Throwables.Runnable in com.landawn.abacus.util.function
Modifier and TypeMethodDescriptiondefault <E extends Throwable>
Throwables.Runnable<E>Runnable.toThrowable()
-
Uses of Throwables.Runnable in com.landawn.abacus.util.stream
Modifier and TypeMethodDescriptionStream.forEach
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> onComplete)