Method Summary |
|
public void | cease() Cleans up the workmanager. |
public void | finishWork() This method is invoked to complete all the work running in the threads
that are active. |
public int | getBusyThreads() Returns the number of wokring threads in the pool. |
public static WorkManager | getWorkManager(String name) Returns a handle to the Work Manager instance for a unique service .
Parameters: name - Some unique name to identify this work manager. |
public void | init() Initializes the Work Manager. |
public boolean | processCommand(Command command) Process the Command in a different thread. |
public void | setMaxThreads(int count) This method can be used to set the maximum threads in the Pool. |
public void | setMinThreads(int count) Sets the minimum number of threads in the Thread pool. |
protected void | setState(String state) Sets the state of the work manager. |
public void | start() Starts the Work Manager. |