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

public Class Jre19Compat

extends Jre16Compat
Class Inheritance
Known Direct Subclasses
org.apache.tomcat.util.compat.Jre21Compat
Imports
java.lang.reflect.Field, 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 StringManager
private static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getExecutor(Thread
The thread to examine
thread
)

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

Obtains the executor, if any, used to create the provided thread.

pack-priv static boolean
Inherited from org.apache.tomcat.util.compat.Jre16Compat:
getUnixDomainSocketAddressopenUnixDomainServerSocketChannelopenUnixDomainSocketChannel

Field Detail

logback to summary
private static final Log log

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

smback to summary
private static final StringManager sm

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

supportedback to summary
private static final boolean supported

Constructor Detail

Jre19Compatback to summary
public Jre19Compat()

Method Detail

getExecutorback to summary
public Object getExecutor(Thread thread) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException

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

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

Obtains the executor, if any, used to create the provided thread.

Parameters
thread:Thread

The thread to examine

Returns:Object

The executor, if any, that created the provided thread

Annotations
@Override
Exceptions
NoSuchFieldException:
If a field used via reflection to obtain the executor cannot be found
SecurityException:
If a security exception occurs while trying to identify the executor
IllegalArgumentException:
If the instance object does not match the class of the field when obtaining a field value via reflection
IllegalAccessException:
If a field is not accessible due to access restrictions
isSupportedback to summary
pack-priv static boolean isSupported()

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