|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IThreadPool
Method Summary | |
---|---|
IRequest |
beginExecute(int data)
Asynchronously executes a user defined worker on any available thread. |
void |
cancelAll()
Cancels all pending requests. |
void |
compact()
Frees unutilized threads in the pool. |
IWorkerThread |
createThread()
Allocates a worker thread for dedicated use outside of the pool. |
void |
destroy()
Destroys the thread pool. |
IRequest |
execute(int data,
int timeout)
Synchronously executes a user defined worker on any available thread. |
void |
executeForEach(int data,
int timeout)
Executes a request on all workers in the pool, then waits for all to complete. |
void |
getSize(int[] size)
Returns the current size of the pool (thread count). |
void |
waitAll(int timeout)
Waits for all pending requests to complete (or cancel). |
Method Detail |
---|
IRequest execute(int data, int timeout) throws IOException, AutomationException
data
- The data (A COM typedef) (in)timeout
- The timeout (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void executeForEach(int data, int timeout) throws IOException, AutomationException
data
- The data (A COM typedef) (in)timeout
- The timeout (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRequest beginExecute(int data) throws IOException, AutomationException
data
- The data (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IWorkerThread createThread() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void waitAll(int timeout) throws IOException, AutomationException
timeout
- The timeout (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void cancelAll() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void getSize(int[] size) throws IOException, AutomationException
size
- The size (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void compact() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void destroy() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |