Top Methods
org.apache.tomcat.util.threads

public Interface ResizableExecutor

extends Executor
Known Direct Implementers
org.apache.catalina.core.StandardThreadExecutor
Imports
java.util.concurrent.Executor

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of threads
getActiveCount
()

Returns the approximate number of threads that are actively executing tasks.

public int
public int

Returns:

the number of threads
getPoolSize
()

Returns the current number of threads in the pool.

public boolean
resizePool(int corePoolSize, int maximumPoolSize)

public boolean
resizeQueue(int capacity)

Inherited from java.util.concurrent.Executor:
execute

Method Detail

getActiveCountback to summary
public int getActiveCount()

Returns the approximate number of threads that are actively executing tasks.

Returns:int

the number of threads

getMaxThreadsback to summary
public int getMaxThreads()
getPoolSizeback to summary
public int getPoolSize()

Returns the current number of threads in the pool.

Returns:int

the number of threads

resizePoolback to summary
public boolean resizePool(int corePoolSize, int maximumPoolSize)
resizeQueueback to summary
public boolean resizeQueue(int capacity)