Top Fields Constructors Methods
org.apache.tomcat.util.compat

public Class Jre21Compat

extends Jre19Compat
Class Inheritance
Known Direct Subclasses
org.apache.tomcat.util.compat.Jre22Compat
Imports
java.lang.reflect.InvocationTargetException, .Method, org.apache.juli.logging.Log, .LogFactory, org.apache.tomcat.util.res.StringManager

Field Summary

Modifier and TypeField and Description
private static final Log
private static final Method
private static final Method
private static final StringManager
private static final Method

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createVirtualThreadBuilder(String
The base name for the threads
name
)

Overrides org.apache.tomcat.util.compat.JreCompat.createVirtualThreadBuilder.

Create a thread builder for virtual threads using the given name to name the threads.

pack-priv static boolean
public void
threadBuilderStart(Object
The thread builder to use to create a thread
threadBuilder
,
Runnable
The command to run
command
)

Overrides org.apache.tomcat.util.compat.JreCompat.threadBuilderStart.

Create a thread with the given thread builder and use it to execute the given runnable.

Inherited from org.apache.tomcat.util.compat.Jre19Compat:
getExecutor

Field Detail

logback to summary
private static final Log log

Hides org.apache.tomcat.util.compat.Jre19Compat.log.

nameMethodback to summary
private static final Method nameMethod
ofVirtualMethodback to summary
private static final Method ofVirtualMethod
smback to summary
private static final StringManager sm

Hides org.apache.tomcat.util.compat.Jre19Compat.sm.

startMethodback to summary
private static final Method startMethod

Constructor Detail

Jre21Compatback to summary
public Jre21Compat()

Method Detail

createVirtualThreadBuilderback to summary
public Object createVirtualThreadBuilder(String name)

Overrides org.apache.tomcat.util.compat.JreCompat.createVirtualThreadBuilder.

Doc from org.apache.tomcat.util.compat.JreCompat.createVirtualThreadBuilder.

Create a thread builder for virtual threads using the given name to name the threads.

Parameters
name:String

The base name for the threads

Returns:Object

The thread buidler for virtual threads

Annotations
@Override
isSupportedback to summary
pack-priv static boolean isSupported()

Hides org.apache.tomcat.util.compat.Jre19Compat.isSupported.

threadBuilderStartback to summary
public void threadBuilderStart(Object threadBuilder, Runnable command)

Overrides org.apache.tomcat.util.compat.JreCompat.threadBuilderStart.

Doc from org.apache.tomcat.util.compat.JreCompat.threadBuilderStart.

Create a thread with the given thread builder and use it to execute the given runnable.

Parameters
threadBuilder:Object

The thread builder to use to create a thread

command:Runnable

The command to run

Annotations
@Override