com.web_visage.ichat
Class AbstractIChatThread

java.lang.Object
  extended by com.web_visage.ichat.AbstractIChatThread
All Implemented Interfaces:
Controllable, IChatThread, java.lang.Runnable

public abstract class AbstractIChatThread
extends java.lang.Object
implements java.lang.Runnable, IChatThread

Abstract implementation of the IChat thread. Provides common delegate methods.

Author:
K.Baturytski

Method Summary
 java.lang.Thread getThread()
          Returns the thread instance.
 void join()
          Joins the component's thread.
 void join(long millis)
          Waits at most millis milliseconds for this thread to die.
 void join(long millis, int nanos)
          Waits at most millis milliseconds plus nanos nanoseconds for this thread to die.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 
Methods inherited from interface com.web_visage.ichat.Controllable
start, stop
 

Method Detail

getThread

public java.lang.Thread getThread()
Description copied from interface: IChatThread
Returns the thread instance.

Specified by:
getThread in interface IChatThread
Returns:
See Also:
IChatThread.getThread()

join

public void join()
          throws java.lang.InterruptedException
Description copied from interface: IChatThread
Joins the component's thread.

Specified by:
join in interface IChatThread
Throws:
java.lang.InterruptedException
See Also:
IChatThread.join()

join

public void join(long millis)
          throws java.lang.InterruptedException
Description copied from interface: IChatThread
Waits at most millis milliseconds for this thread to die. A timeout of 0 means to wait forever.

Specified by:
join in interface IChatThread
Throws:
java.lang.InterruptedException
See Also:
IChatThread.join(long)

join

public void join(long millis,
                 int nanos)
          throws java.lang.InterruptedException
Description copied from interface: IChatThread
Waits at most millis milliseconds plus nanos nanoseconds for this thread to die.

Specified by:
join in interface IChatThread
Throws:
java.lang.InterruptedException
See Also:
IChatThread.join(long, int)