net.jxta.impl.util
Class TimerThreadNamer
java.lang.Object
java.util.TimerTask
net.jxta.impl.util.TimerThreadNamer
- All Implemented Interfaces:
- Runnable
public class TimerThreadNamer
- extends TimerTask
A simple timer task who's sole purpose is to name the Thread on which timer
tasks are running. You normally use it by :
Timer timer = new Timer();
timer.schedule( new TimerThreadNamer( "name for timer" ), 0 );
Note that this implementation assumes the Timer implemntation found in
Sun JDK 1.2-1.4.2 (and possibly later) in that there is a single thread
attached to each Timer object.
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimerThreadNamer
public TimerThreadNamer(String useName)
- Construct a Timer Thread Namer object
- Parameters:
useName
- The name which the timer thread will be given.
run
public void run()
-
- Specified by:
run
in interface Runnable
- Specified by:
run
in class TimerTask