Project JXTA

net.jxta.impl.util
Class TimerThreadNamer

java.lang.Object
  extended byjava.util.TimerTask
      extended bynet.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.


Field Summary
 
Fields inherited from class java.util.TimerTask
 
Constructor Summary
TimerThreadNamer(String useName)
          Construct a Timer Thread Namer object
 
Method Summary
 void run()
          
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerThreadNamer

public TimerThreadNamer(String useName)
Construct a Timer Thread Namer object

Parameters:
useName - The name which the timer thread will be given.
Method Detail

run

public void run()


JXTA J2SE