- ScheduledCaughtExecutorService - Class in br.com.armange.commons.thread
-
A ScheduledThreadPoolExecutor that can additionally perform actions after thread has completed normally.
- ScheduledCaughtExecutorService(int) - Constructor for class br.com.armange.commons.thread.ScheduledCaughtExecutorService
-
- ScheduledCaughtExecutorService(int, ThreadFactory) - Constructor for class br.com.armange.commons.thread.ScheduledCaughtExecutorService
-
- setAfterExecuteConsumer(BiConsumer<Runnable, Throwable>) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the consumer to be called after thread execution.
- setDelay(long) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the delay value.
- setExecution(Runnable) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the thread execution.
- setInterval(long) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the repeating interval value.
- setMayInterruptIfRunning(boolean) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the thread-interrupting-flag.
- setSilentInterruption(boolean) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the thread-silent-interrupting-flag.
- setThreadName(String) - Method in class br.com.armange.commons.thread.CaughtExecutorThreadFactory
-
Sets the thread name to be used in a new thread.
- setThreadNameSupplier(Supplier<String>) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the thread name supplier.The thread factory will consume this supplier to generate a thread name
before return a new thread.
- setThreadPriority(Integer) - Method in class br.com.armange.commons.thread.CaughtExecutorThreadFactory
-
Sets the thread priority to be used in a new thread.
- setThreadPrioritySupplier(Supplier<Integer>) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the thread priority supplier.The thread factory will consume this supplier to generate a thread priority
before return a new thread.
- setTimeout(long) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the timeout value.
- setUncaughtExceptionConsumer(Consumer<Throwable>) - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Sets the consumer to be called after exception throwing.
- setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in class br.com.armange.commons.thread.CaughtExecutorThreadFactory
-
Sets the uncaught exception handler to be used in a new thread.
- sleepUnchecked(long) - Static method in class br.com.armange.commons.thread.ThreadUtil
-
It wraps a thread-sleep execution in a try-catch block and rethrow a RuntimeException.RuntimeException(Throwable)
if any exception is thrown.
- start() - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Starts the thread.
- startAndBuildOther() - Method in class br.com.armange.commons.thread.ThreadBuilder
-
Starts the thread.