org.sblim.cimclient.internal.util
private static class ThreadPool.Worker extends Thread
| Constructor Summary | |
|---|---|
| Worker(ThreadPool pool, String name)
Ctor.
| |
| Method Summary | |
|---|---|
| boolean | assignTask(Runnable task)
Assigns a new task to the thread
|
| long | getIdleTimeout()
Returns the idle timeout
|
| void | kill()
Kills the thread |
| void | run() |
| void | setIdleTimeout(long pIdleTimeout)
Set the idle timeout
|
| void | start() |
Parameters: pool The owning pool name The name of the thread
Parameters: task The task
Returns: true if the task could be successfully
assigned.
Returns: The idle timeout
Parameters: pIdleTimeout The new value