sfi.director.util.TimeoutThread Class Reference

Inheritance diagram for sfi.director.util.TimeoutThread:

sfi.director.util.StoppableThread sfi.director.util.DirectorThread List of all members.

Detailed Description

Implements timeout.

Once started, the timeout thread waits the configured amount of time and then interrupts the parent thread. If the TimeoutThread is interrupted before the timeout is over the parent thread is not going to be interrupted.


Public Member Functions

 TimeoutThread ()
 TimeoutThread (long timeout)
 Setup and start timeout thread with the given timeout for the current thread.
void work ()
void setParent (Thread master)
 Set parent thread.
void setTimeout (long timeout)
 Set timeout in milliseconds.

Package Attributes

Thread needAbort = null
long timeout = 1


Constructor & Destructor Documentation

sfi.director.util.TimeoutThread.TimeoutThread  ) 
 

sfi.director.util.TimeoutThread.TimeoutThread long  timeout  ) 
 

Setup and start timeout thread with the given timeout for the current thread.

Note:
This is special. The thread is not only created but also immediately started.


Member Function Documentation

void sfi.director.util.TimeoutThread.setParent Thread  master  ) 
 

Set parent thread.

The object is created with the parent being the current thread. So, usually it is unnecessary to explicitly setParent().

void sfi.director.util.TimeoutThread.setTimeout long  timeout  ) 
 

Set timeout in milliseconds.

void sfi.director.util.TimeoutThread.work  ) 
 

Reimplemented from sfi.director.util.DirectorThread.


Member Data Documentation

Thread sfi.director.util.TimeoutThread.needAbort = null [package]
 

long sfi.director.util.TimeoutThread.timeout = 1 [package]
 


The documentation for this class was generated from the following file:
Generated on Sat May 19 01:20:00 2012 for Node Director by  doxygen 1.4.5