|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.addinframework.IThreadPoolProxy
public class IThreadPoolProxy
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IThreadPoolProxy()
|
|
IThreadPoolProxy(Object obj)
|
protected |
IThreadPoolProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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 |
removeListener(String iidStr,
Object theListener)
|
void |
waitAll(int timeout)
Waits for all pending requests to complete (or cancel). |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IThreadPoolProxy()
public IThreadPoolProxy(Object obj) throws IOException
IOException
protected IThreadPoolProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public IRequest execute(int data, int timeout) throws IOException, AutomationException
execute
in interface IThreadPool
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.public void executeForEach(int data, int timeout) throws IOException, AutomationException
executeForEach
in interface IThreadPool
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.public IRequest beginExecute(int data) throws IOException, AutomationException
beginExecute
in interface IThreadPool
data
- The data (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkerThread createThread() throws IOException, AutomationException
createThread
in interface IThreadPool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void waitAll(int timeout) throws IOException, AutomationException
waitAll
in interface IThreadPool
timeout
- The timeout (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void cancelAll() throws IOException, AutomationException
cancelAll
in interface IThreadPool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSize(int[] size) throws IOException, AutomationException
getSize
in interface IThreadPool
size
- The size (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void compact() throws IOException, AutomationException
compact
in interface IThreadPool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void destroy() throws IOException, AutomationException
destroy
in interface IThreadPool
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 |