Top Description Inners Fields Constructors Methods
org.apache.tomcat.util.threads

public Class TaskThread

extends Thread
Class Inheritance
Imports
org.apache.juli.logging.Log, .LogFactory, org.apache.tomcat.util.res.StringManager

A Thread implementation that records the time at which it was created.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
TaskThread.WrappingRunnable

Wraps a Runnable to swallow any StopPooledThreadException instead of letting it go and potentially trigger a break in a debugger.

Field Summary

Modifier and TypeField and Description
private final long
private static final Log
private static final StringManager
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
public
TaskThread(ThreadGroup group, Runnable target, String name)

public
TaskThread(ThreadGroup group, Runnable target, String name, long stackSize)

Method Summary

Modifier and TypeMethod and Description
public final long

Returns:

the time (in ms) at which this thread was created
getCreationTime
()

Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitrunsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadstopthreadIdtoStringyield

Field Detail

creationTimeback to summary
private final long creationTime
logback to summary
private static final Log log
smback to summary
private static final StringManager sm

Constructor Detail

TaskThreadback to summary
public TaskThread(ThreadGroup group, Runnable target, String name)
TaskThreadback to summary
public TaskThread(ThreadGroup group, Runnable target, String name, long stackSize)

Method Detail

getCreationTimeback to summary
public final long getCreationTime()
Returns:long

the time (in ms) at which this thread was created

org.apache.tomcat.util.threads back to summary

private Class TaskThread.WrappingRunnable

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Wraps a Runnable to swallow any StopPooledThreadException instead of letting it go and potentially trigger a break in a debugger.

Field Summary

Modifier and TypeField and Description
private Runnable

Constructor Summary

AccessConstructor and Description
pack-priv
WrappingRunnable(Runnable wrappedRunnable)

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

wrappedRunnableback to summary
private Runnable wrappedRunnable

Constructor Detail

WrappingRunnableback to summary
pack-priv WrappingRunnable(Runnable wrappedRunnable)

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override