com.esri.arcgis.addinframework
Class IThreadPoolProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.addinframework.IThreadPoolProxy
All Implemented Interfaces:
IThreadPool, java.io.Externalizable, java.io.Serializable

public class IThreadPoolProxy
extends com.esri.arcgis.interop.Dispatch
implements IThreadPool, java.io.Serializable

Internal use class Proxy for COM Interface 'IThreadPool'. Generated 3/19/2015 1:21:02 PM from 'C:\ArcGIS\SharedArcGIS\DepFiles\com\DADF\esriDADFSystem.tlb'

Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
static java.lang.Class targetClass
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Fields inherited from interface com.esri.arcgis.addinframework.IThreadPool
IID, IID132a89fa_e356_48d2_a926_44282c91e071
 
Constructor Summary
  IThreadPoolProxy()
          For internal use only
  IThreadPoolProxy(java.lang.Object obj)
           
protected IThreadPoolProxy(java.lang.Object obj, java.lang.String iid)
           
  IThreadPoolProxy(java.lang.String CLSID, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
           
protected IThreadPoolProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
           
 
Method Summary
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
           
 IRequest beginExecute(int data)
          Asynchronously executes a user defined worker on any available thread.
 void beginExecuteForEach(int data)
          Executes a request on all workers in the pool.
 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(java.lang.String iidStr, java.lang.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

targetClass

public static final java.lang.Class targetClass

noncastable

public boolean noncastable
Constructor Detail

IThreadPoolProxy

public IThreadPoolProxy(java.lang.String CLSID,
                        java.lang.String host,
                        com.esri.arcgis.interop.AuthInfo authInfo)
                 throws java.net.UnknownHostException,
                        java.io.IOException
Throws:
java.net.UnknownHostException
java.io.IOException

IThreadPoolProxy

public IThreadPoolProxy()
For internal use only


IThreadPoolProxy

public IThreadPoolProxy(java.lang.Object obj)
                 throws java.io.IOException
Throws:
java.io.IOException

IThreadPoolProxy

protected IThreadPoolProxy(java.lang.Object obj,
                           java.lang.String iid)
                    throws java.io.IOException
Throws:
java.io.IOException

IThreadPoolProxy

protected IThreadPoolProxy(java.lang.String CLSID,
                           java.lang.String iid,
                           java.lang.String host,
                           com.esri.arcgis.interop.AuthInfo authInfo)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addListener

public void addListener(java.lang.String iidStr,
                        java.lang.Object theListener,
                        java.lang.Object theSource)
                 throws java.io.IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
java.io.IOException

removeListener

public void removeListener(java.lang.String iidStr,
                           java.lang.Object theListener)
                    throws java.io.IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
java.io.IOException

execute

public IRequest execute(int data,
                        int timeout)
                 throws java.io.IOException,
                        AutomationException
Synchronously executes a user defined worker on any available thread. Returns S_FALSE if request times out.

Specified by:
execute in interface IThreadPool
Parameters:
data - The data (A COM typedef) (in)
timeout - The timeout (in)
Returns:
A reference to a com.esri.arcgis.addinframework.IRequest
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

executeForEach

public void executeForEach(int data,
                           int timeout)
                    throws java.io.IOException,
                           AutomationException
Executes a request on all workers in the pool, then waits for all to complete. Returns S_FALSE if request timesout.

Specified by:
executeForEach in interface IThreadPool
Parameters:
data - The data (A COM typedef) (in)
timeout - The timeout (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

beginExecute

public IRequest beginExecute(int data)
                      throws java.io.IOException,
                             AutomationException
Asynchronously executes a user defined worker on any available thread.

Specified by:
beginExecute in interface IThreadPool
Parameters:
data - The data (A COM typedef) (in)
Returns:
A reference to a com.esri.arcgis.addinframework.IRequest
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createThread

public IWorkerThread createThread()
                           throws java.io.IOException,
                                  AutomationException
Allocates a worker thread for dedicated use outside of the pool.

Specified by:
createThread in interface IThreadPool
Returns:
A reference to a com.esri.arcgis.addinframework.IWorkerThread
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

waitAll

public void waitAll(int timeout)
             throws java.io.IOException,
                    AutomationException
Waits for all pending requests to complete (or cancel).

Specified by:
waitAll in interface IThreadPool
Parameters:
timeout - The timeout (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

cancelAll

public void cancelAll()
               throws java.io.IOException,
                      AutomationException
Cancels all pending requests.

Specified by:
cancelAll in interface IThreadPool
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSize

public void getSize(int[] size)
             throws java.io.IOException,
                    AutomationException
Returns the current size of the pool (thread count).

Specified by:
getSize in interface IThreadPool
Parameters:
size - The size (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

compact

public void compact()
             throws java.io.IOException,
                    AutomationException
Frees unutilized threads in the pool.

Specified by:
compact in interface IThreadPool
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

destroy

public void destroy()
             throws java.io.IOException,
                    AutomationException
Destroys the thread pool.

Specified by:
destroy in interface IThreadPool
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

beginExecuteForEach

public void beginExecuteForEach(int data)
                         throws java.io.IOException,
                                AutomationException
Executes a request on all workers in the pool.

Specified by:
beginExecuteForEach in interface IThreadPool
Parameters:
data - The data (A COM typedef) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.