|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.commons.threads.impl.ThreadPoolFacade
public final class ThreadPoolFacade
This is a facade which is delivered to clients. It allows to change the thread pool behind the facacde without affecting the client.
Constructor Summary | |
---|---|
ThreadPoolFacade(DefaultThreadPool pool)
|
Method Summary | |
---|---|
void |
execute(Runnable runnable)
Execute a runnable |
ThreadPoolConfig |
getConfiguration()
The thread pool configuration. |
java.util.concurrent.ThreadPoolExecutor |
getExecutor()
|
String |
getName()
The name of the thread pool. |
void |
setName(String name)
Update name |
void |
setPool(DefaultThreadPool pool)
Update pool |
void |
shutdown()
Shutdown this thread pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadPoolFacade(DefaultThreadPool pool)
Method Detail |
---|
public void execute(Runnable runnable)
ThreadPool
execute
in interface ThreadPool
runnable
- The Runnable
to executeThreadPool.execute(java.lang.Runnable)
public ThreadPoolConfig getConfiguration()
ThreadPool
getConfiguration
in interface ThreadPool
ThreadPool.getConfiguration()
public String getName()
ThreadPool
getName
in interface ThreadPool
ThreadPool.getName()
public void shutdown()
public void setName(String name)
public void setPool(DefaultThreadPool pool)
public java.util.concurrent.ThreadPoolExecutor getExecutor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |