Class TaskThread

java.lang.Object
java.lang.Thread
org.apache.tomcat.util.threads.TaskThread
All Implemented Interfaces:
Runnable

public class TaskThread extends Thread
A Thread implementation that records the time at which it was created.
  • Constructor Details

    • TaskThread

      public TaskThread(ThreadGroup group, Runnable target, String name)
      Creates a new TaskThread with the specified parameters.
      Parameters:
      group - the thread group
      target - the runnable task
      name - the thread name
    • TaskThread

      public TaskThread(ThreadGroup group, Runnable target, String name, long stackSize)
      Creates a new TaskThread with the specified parameters and stack size.
      Parameters:
      group - the thread group
      target - the runnable task
      name - the thread name
      stackSize - the desired stack size
  • Method Details

    • getCreationTime

      public final long getCreationTime()
      Returns the time at which this thread was created.
      Returns:
      the creation time in milliseconds since the epoch