|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.concurrent.AbstractExecutorService
org.elasticsearch.common.util.concurrent.TransferThreadPoolExecutor
public class TransferThreadPoolExecutor
A thread pool based on TransferQueue
.
Limited compared to ExecutorServer in what it does, but focused on speed.
Method Summary | |
---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
|
void |
execute(java.lang.Runnable command)
|
int |
getActiveCount()
Returns the approximate number of threads that are actively executing tasks. |
int |
getCorePoolSize()
|
int |
getMaximumPoolSize()
|
int |
getPoolSize()
Returns the current number of threads in the pool. |
int |
getQueueSize()
|
boolean |
isShutdown()
|
boolean |
isTerminated()
|
static TransferThreadPoolExecutor |
newBlockingExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
long blockingTime,
java.util.concurrent.TimeUnit blockingUnit,
int blockingCapacity,
java.util.concurrent.ThreadFactory threadFactory)
|
static TransferThreadPoolExecutor |
newScalingExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.ThreadFactory threadFactory)
|
void |
shutdown()
|
java.util.List<java.lang.Runnable> |
shutdownNow()
|
Methods inherited from class java.util.concurrent.AbstractExecutorService |
---|
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TransferThreadPoolExecutor newScalingExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.ThreadFactory threadFactory)
public static TransferThreadPoolExecutor newBlockingExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, long blockingTime, java.util.concurrent.TimeUnit blockingUnit, int blockingCapacity, java.util.concurrent.ThreadFactory threadFactory)
public void execute(java.lang.Runnable command)
public void shutdown()
public java.util.List<java.lang.Runnable> shutdownNow()
public boolean isShutdown()
public boolean isTerminated()
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public int getPoolSize()
public int getActiveCount()
public int getCorePoolSize()
public int getMaximumPoolSize()
public int getQueueSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |