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, Externalizable, Serializable

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

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IWorkerThreadProxy()
           
  IWorkerThreadProxy(Object obj)
           
protected IWorkerThreadProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, 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(String iidStr, 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

noncastable

public boolean noncastable
Constructor Detail

IWorkerThreadProxy

public IWorkerThreadProxy()

IWorkerThreadProxy

public IWorkerThreadProxy(Object obj)
                   throws IOException
Throws:
IOException

IWorkerThreadProxy

protected IWorkerThreadProxy(Object obj,
                             String iid)
                      throws IOException
Throws:
IOException
Method Detail

addListener

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

removeListener

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

execute

public IRequest execute(int data,
                        int timeout)
                 throws 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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

beginExecute

public IRequest beginExecute(int data)
                      throws 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:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

cancelAll

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

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

getBusy

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

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

getThreadID

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

Specified by:
getThreadID in interface IWorkerThread
Returns:
The pThreadID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

destroy

public void destroy()
             throws IOException,
                    AutomationException
Destroys the worker thread.

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