gnu.cajo.utils
Class BaseProxy.MainThread

java.lang.Object
  extended by gnu.cajo.utils.BaseProxy.MainThread
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable
Enclosing class:
BaseProxy

public abstract class BaseProxy.MainThread
extends java.lang.Object
implements java.lang.Runnable, java.io.Serializable

The main processing thread of this object. An object can be either entirely, event driven, i.e. executing only when its methods are being invoked, or can also have a thread of its own. If non-null, it will be started upon its arrival at the host via the client's proxy inialisation invocation.

This is an an inner class of BaseProxy, to allow its implementations access to the object's private and protected members and methods. This is critical because all public methods of BaseProxy can be invoked by remote objects, just like with local objects.

See Also:
Serialized Form

Constructor Summary
BaseProxy.MainThread()
          Nothing is performed in the constructor.
 
Method Summary
abstract  void run()
          The run method is exectued by the thread created for the BaseProxy at its initialization at the client, and runs until it returns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseProxy.MainThread

public BaseProxy.MainThread()
Nothing is performed in the constructor. Construction and configuration are generally performed by a builder application.

Method Detail

run

public abstract void run()
The run method is exectued by the thread created for the BaseProxy at its initialization at the client, and runs until it returns.

Specified by:
run in interface java.lang.Runnable