com.esri.arcgis.addinframework
Class IWorkerThreadProxy

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

public class IWorkerThreadProxy
extends com.esri.arcgis.interop.Dispatch
implements IWorkerThread, java.io.Serializable

Internal use class Proxy for COM Interface 'IWorkerThread'. 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.IWorkerThread
IID, IID5e6043d6_6aea_459a_934e_27b4844b0cff
 
Constructor Summary
  IWorkerThreadProxy()
          For internal use only
  IWorkerThreadProxy(java.lang.Object obj)
           
protected IWorkerThreadProxy(java.lang.Object obj, java.lang.String iid)
           
  IWorkerThreadProxy(java.lang.String CLSID, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo)
           
protected IWorkerThreadProxy(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.
 void cancelAll()
          Cancels all requests queued to this thread.
 void destroy()
          Destroys the worker thread.
 IRequest execute(int data, int timeout)
          Synchronously executes a user defined worker.
 void getBusy()
          Returns S_OK if busy, S_FALSE if not busy.
 int getThreadID()
          Returns the worker's thread ID.
 void removeListener(java.lang.String iidStr, java.lang.Object theListener)
           
 
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

IWorkerThreadProxy

public IWorkerThreadProxy(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

IWorkerThreadProxy

public IWorkerThreadProxy()
For internal use only


IWorkerThreadProxy

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

IWorkerThreadProxy

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

IWorkerThreadProxy

protected IWorkerThreadProxy(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. Return S_FALSE if request timesout.

Specified by:
execute in interface IWorkerThread
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.

beginExecute

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

Specified by:
beginExecute in interface IWorkerThread
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.

cancelAll

public void cancelAll()
               throws java.io.IOException,
                      AutomationException
Cancels all requests queued to this thread.

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

getBusy

public void getBusy()
             throws java.io.IOException,
                    AutomationException
Returns S_OK if busy, S_FALSE if not busy.

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

getThreadID

public int getThreadID()
                throws java.io.IOException,
                       AutomationException
Returns the worker's thread ID.

Specified by:
getThreadID in interface IWorkerThread
Returns:
The pThreadID
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 worker thread.

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