Skip navigation links
A B C E G M N S T 

A

addAfterExecuteConsumer(BiConsumer<Runnable, Throwable>) - Method in class br.com.armange.commons.thread.ScheduledCaughtExecutorService
 
afterExecute(Runnable, Throwable) - Method in class br.com.armange.commons.thread.ScheduledCaughtExecutorService
Method invoked upon completion of execution of the given Runnable.

B

br.com.armange.commons.thread - package br.com.armange.commons.thread
Utility package for thread creation.

C

CaughtExecutorThreadFactory - Class in br.com.armange.commons.thread
A thread-factory that sets some thread parameters if non-null: Name Priority Uncaught exception handler
CaughtExecutorThreadFactory() - Constructor for class br.com.armange.commons.thread.CaughtExecutorThreadFactory
 

E

ExecutorResult - Class in br.com.armange.commons.thread
A bean that wrappes a thread result, composed by a ExecutorService, a Future list and another ExecutorResult list for timeouted threads.
ExecutorResult(ExecutorService) - Constructor for class br.com.armange.commons.thread.ExecutorResult
 

G

getAfterExecuteConsumers() - Method in class br.com.armange.commons.thread.ScheduledCaughtExecutorService
 
getCurrentThreadResource(String) - Static method in class br.com.armange.commons.thread.ThreadUtil
 
getCurrentThreadResourceAsStream(String) - Static method in class br.com.armange.commons.thread.ThreadUtil
 
getExecutorService() - Method in class br.com.armange.commons.thread.ExecutorResult
 
getFutures() - Method in class br.com.armange.commons.thread.ExecutorResult
 
getTimeoutExecutorResults() - Method in class br.com.armange.commons.thread.ExecutorResult
Whenever a thread times out, its respective ExecutorService and Future will be present in this list.

M

MINIMAL_REQUIRED_DELAY - Static variable in class br.com.armange.commons.thread.ThreadBuilder
1000 milliseconds as a minimal delay.

N

newBuilder() - Static method in class br.com.armange.commons.thread.ThreadBuilder
 
newBuilder(int) - Static method in class br.com.armange.commons.thread.ThreadBuilder
 
newThread(Runnable) - Method in class br.com.armange.commons.thread.CaughtExecutorThreadFactory
Sets some thread parameters before return a new thread: Name Priority Uncaught exception handler These thread parameters will be used if they are not null.

S

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.

T

ThreadBuilder - Class in br.com.armange.commons.thread
Useful structure for thread creation in the following scenarios: Timeout
The thread will be active only until the timeout be fired.
ThreadUtil - Class in br.com.armange.commons.thread
Useful structure for handling the current thread.
A B C E G M N S T 
Skip navigation links