Skip navigation links
Executor Utils, 0.4.0
A B C D E G I J N O P R S T 

A

AbortPolicy() - Constructor for class java.util.concurrent.ThreadPoolExecutor.AbortPolicy
Creates an AbortPolicy.
afterExecute(Runnable, Throwable) - Method in interface com.github.nill14.utils.executor.ExecutorListener
 
allowCoreThreadTimeOut(boolean) - Method in class java.util.concurrent.ThreadPoolExecutor
Sets the policy governing whether core threads may time out and terminate if no tasks arrive within the keep-alive time, being replaced if needed when new tasks arrive.
allowsCoreThreadTimeOut() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns true if this pool allows core threads to time out and terminate if no tasks arrive within the keepAlive time, being replaced if needed when new tasks arrive.
awaitTermination(long, TimeUnit) - Method in class java.util.concurrent.ThreadPoolExecutor
 

B

beforeExecute(Thread, Runnable) - Method in interface com.github.nill14.utils.executor.ExecutorListener
 

C

CallerRunsPolicy() - Constructor for class java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
Creates a CallerRunsPolicy.
com.github.nill14.utils.executor - package com.github.nill14.utils.executor
 

D

DiscardOldestPolicy() - Constructor for class java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy
Creates a DiscardOldestPolicy for the given executor.
DiscardPolicy() - Constructor for class java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
Creates a DiscardPolicy.

E

execute(Runnable) - Method in class com.github.nill14.utils.executor.SwingExecutor
 
execute(Runnable) - Method in class java.util.concurrent.ThreadPoolExecutor
Executes the given task sometime in the future.
ExecutorListener - Interface in com.github.nill14.utils.executor
 

G

getActiveCount() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the approximate number of threads that are actively executing tasks.
getCompletedTaskCount() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the approximate total number of tasks that have completed execution.
getCorePoolSize() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the core number of threads.
getKeepAliveTime(TimeUnit) - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the thread keep-alive time, which is the amount of time that threads in excess of the core pool size may remain idle before being terminated.
getLargestPoolSize() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the largest number of threads that have ever simultaneously been in the pool.
getMaximumPoolSize() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the maximum allowed number of threads.
getPoolSize() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the current number of threads in the pool.
getQueue() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the task queue used by this executor.
getRejectedExecutionHandler() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the current handler for unexecutable tasks.
getTaskCount() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the approximate total number of tasks that have ever been scheduled for execution.
getThreadFactory() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns the thread factory used to create new threads.

I

instance() - Static method in class com.github.nill14.utils.executor.SwingExecutor
 
InterceptingExecutor - Class in com.github.nill14.utils.executor
Explanation about corePoolSize vs maxPoolSize http://www.bigsoft.co.uk/blog/index.php/2009/11/27/rules-of-a-threadpoolexecutor-pool-size
InterceptingExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, RejectedExecutionHandler) - Constructor for class com.github.nill14.utils.executor.InterceptingExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default thread factory.
InterceptingExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory, RejectedExecutionHandler) - Constructor for class com.github.nill14.utils.executor.InterceptingExecutor
Creates a new ThreadPoolExecutor with the given initial parameters.
InterceptingExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory) - Constructor for class com.github.nill14.utils.executor.InterceptingExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default rejected execution handler.
InterceptingExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>) - Constructor for class com.github.nill14.utils.executor.InterceptingExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default thread factory and rejected execution handler.
isShutdown() - Method in class java.util.concurrent.ThreadPoolExecutor
 
isTerminated() - Method in class java.util.concurrent.ThreadPoolExecutor
 
isTerminating() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns true if this executor is in the process of terminating after ThreadPoolExecutor.shutdown() or ThreadPoolExecutor.shutdownNow() but has not completely terminated.

J

java.util.concurrent - package java.util.concurrent
 

N

newFixedThreadPool(int) - Static method in class com.github.nill14.utils.executor.InterceptingExecutor
Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue.
newFixedThreadPool(int) - Static method in class com.github.nill14.utils.executor.PriorityExecutor
Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue.

O

onSubmit() - Method in interface com.github.nill14.utils.executor.ExecutorListener
 

P

prestartAllCoreThreads() - Method in class java.util.concurrent.ThreadPoolExecutor
Starts all core threads, causing them to idly wait for work.
prestartCoreThread() - Method in class java.util.concurrent.ThreadPoolExecutor
Starts a core thread, causing it to idly wait for work.
PriorityExecutor - Class in com.github.nill14.utils.executor
Explanation about corePoolSize vs maxPoolSize http://www.bigsoft.co.uk/blog/index.php/2009/11/27/rules-of-a-threadpoolexecutor-pool-size
PriorityExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, RejectedExecutionHandler) - Constructor for class com.github.nill14.utils.executor.PriorityExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default thread factory.
PriorityExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory, RejectedExecutionHandler) - Constructor for class com.github.nill14.utils.executor.PriorityExecutor
Creates a new ThreadPoolExecutor with the given initial parameters.
PriorityExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory) - Constructor for class com.github.nill14.utils.executor.PriorityExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default rejected execution handler.
PriorityExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>) - Constructor for class com.github.nill14.utils.executor.PriorityExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default thread factory and rejected execution handler.
purge() - Method in class java.util.concurrent.ThreadPoolExecutor
Tries to remove from the work queue all Future tasks that have been cancelled.

R

rejectedExecution(Runnable, ThreadPoolExecutor) - Method in class java.util.concurrent.ThreadPoolExecutor.AbortPolicy
Always throws RejectedExecutionException.
rejectedExecution(Runnable, ThreadPoolExecutor) - Method in class java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
Executes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded.
rejectedExecution(Runnable, ThreadPoolExecutor) - Method in class java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy
Obtains and ignores the next task that the executor would otherwise execute, if one is immediately available, and then retries execution of task r, unless the executor is shut down, in which case task r is instead discarded.
rejectedExecution(Runnable, ThreadPoolExecutor) - Method in class java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
Does nothing, which has the effect of discarding task r.
remove(Runnable) - Method in class java.util.concurrent.ThreadPoolExecutor
Removes this task from the executor's internal queue if it is present, thus causing it not to be run if it has not already started.
ReschedulableTask - Class in com.github.nill14.utils.executor
ReschedulableTask provides some extra methods over ScheduledExecutorService
ReschedulableTask(ScheduledExecutorService, Runnable) - Constructor for class com.github.nill14.utils.executor.ReschedulableTask
 
reschedule(long, TimeUnit) - Method in class com.github.nill14.utils.executor.ReschedulableTask
Re-schedule the given task so that it get invoked only once.

S

scheduleOnce(long, TimeUnit) - Method in class com.github.nill14.utils.executor.ReschedulableTask
Schedule the execution of the command only once.
setCorePoolSize(int) - Method in class java.util.concurrent.ThreadPoolExecutor
Sets the core number of threads.
setKeepAliveTime(long, TimeUnit) - Method in class java.util.concurrent.ThreadPoolExecutor
Sets the time limit for which threads may remain idle before being terminated.
setMaximumPoolSize(int) - Method in class java.util.concurrent.ThreadPoolExecutor
Sets the maximum allowed number of threads.
setRejectedExecutionHandler(RejectedExecutionHandler) - Method in class java.util.concurrent.ThreadPoolExecutor
Sets a new handler for unexecutable tasks.
setThreadFactory(ThreadFactory) - Method in class java.util.concurrent.ThreadPoolExecutor
Sets the thread factory used to create new threads.
shutdown() - Method in class java.util.concurrent.ThreadPoolExecutor
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
shutdownNow() - Method in class java.util.concurrent.ThreadPoolExecutor
Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.
SwingExecutor - Class in com.github.nill14.utils.executor
Executor adapter scheduling on Swing event dispatch thread.
SwingExecutor() - Constructor for class com.github.nill14.utils.executor.SwingExecutor
 

T

ThreadPoolExecutor - Class in java.util.concurrent
An ExecutorService that executes each submitted task using one of possibly several pooled threads, normally configured using Executors factory methods.
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>) - Constructor for class java.util.concurrent.ThreadPoolExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default thread factory and rejected execution handler.
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory) - Constructor for class java.util.concurrent.ThreadPoolExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default rejected execution handler.
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, RejectedExecutionHandler) - Constructor for class java.util.concurrent.ThreadPoolExecutor
Creates a new ThreadPoolExecutor with the given initial parameters and default thread factory.
ThreadPoolExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory, RejectedExecutionHandler) - Constructor for class java.util.concurrent.ThreadPoolExecutor
Creates a new ThreadPoolExecutor with the given initial parameters.
ThreadPoolExecutor.AbortPolicy - Class in java.util.concurrent
A handler for rejected tasks that throws a RejectedExecutionException.
ThreadPoolExecutor.CallerRunsPolicy - Class in java.util.concurrent
A handler for rejected tasks that runs the rejected task directly in the calling thread of the execute method, unless the executor has been shut down, in which case the task is discarded.
ThreadPoolExecutor.DiscardOldestPolicy - Class in java.util.concurrent
A handler for rejected tasks that discards the oldest unhandled request and then retries execute, unless the executor is shut down, in which case the task is discarded.
ThreadPoolExecutor.DiscardPolicy - Class in java.util.concurrent
A handler for rejected tasks that silently discards the rejected task.
toString() - Method in class java.util.concurrent.ThreadPoolExecutor
Returns a string identifying this pool, as well as its state, including indications of run state and estimated worker and task counts.
A B C D E G I J N O P R S T 
Skip navigation links
Executor Utils, 0.4.0

Copyright © 2016. All rights reserved.