org.apache.catalina.core
Modifier and Type | Field and Description |
---|---|
protected boolean |
daemon |
protected java.util.concurrent.ThreadPoolExecutor |
executor |
protected int |
maxIdleTime |
protected int |
maxThreads |
protected int |
minSpareThreads |
protected java.lang.String |
name |
protected java.lang.String |
namePrefix |
protected int |
threadPriority |
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
StandardThreadExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component.
|
void |
execute(java.lang.Runnable command) |
LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle.
|
int |
getActiveCount() |
long |
getCompletedTaskCount() |
int |
getCorePoolSize() |
int |
getLargestPoolSize() |
int |
getMaxIdleTime() |
int |
getMaxThreads() |
int |
getMinSpareThreads() |
java.lang.String |
getName() |
java.lang.String |
getNamePrefix() |
int |
getPoolSize() |
int |
getQueueSize() |
int |
getThreadPriority() |
boolean |
isDaemon() |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component.
|
void |
setDaemon(boolean daemon) |
void |
setMaxIdleTime(int maxIdleTime) |
void |
setMaxThreads(int maxThreads) |
void |
setMinSpareThreads(int minSpareThreads) |
void |
setName(java.lang.String name) |
void |
setNamePrefix(java.lang.String namePrefix) |
void |
setThreadPriority(int threadPriority) |
void |
start()
Prepare for the beginning of active use of the public methods of this
component.
|
void |
stop()
Gracefully terminate the active use of the public methods of this
component.
|
protected int threadPriority
protected boolean daemon
protected java.lang.String namePrefix
protected int maxThreads
protected int minSpareThreads
protected int maxIdleTime
protected java.util.concurrent.ThreadPoolExecutor executor
protected java.lang.String name
public void start() throws LifecycleException
Lifecycle
start
in interface Lifecycle
LifecycleException
- if this component detects a fatal error
that prevents this component from being usedpublic void stop() throws LifecycleException
Lifecycle
stop
in interface Lifecycle
LifecycleException
- if this component detects a fatal error
that needs to be reportedpublic void execute(java.lang.Runnable command)
execute
in interface java.util.concurrent.Executor
public int getThreadPriority()
public boolean isDaemon()
public java.lang.String getNamePrefix()
public int getMaxIdleTime()
public int getMaxThreads()
public int getMinSpareThreads()
public java.lang.String getName()
public void setThreadPriority(int threadPriority)
public void setDaemon(boolean daemon)
public void setNamePrefix(java.lang.String namePrefix)
public void setMaxIdleTime(int maxIdleTime)
public void setMaxThreads(int maxThreads)
public void setMinSpareThreads(int minSpareThreads)
public void setName(java.lang.String name)
public void addLifecycleListener(LifecycleListener listener)
addLifecycleListener
in interface Lifecycle
listener
- The listener to addpublic LifecycleListener[] findLifecycleListeners()
findLifecycleListeners
in interface Lifecycle
public void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener
in interface Lifecycle
listener
- The listener to removepublic int getActiveCount()
public long getCompletedTaskCount()
public int getCorePoolSize()
public int getLargestPoolSize()
public int getPoolSize()
public int getQueueSize()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.