Class Jre19Compat
java.lang.Object
org.apache.tomcat.util.compat.JreCompat
org.apache.tomcat.util.compat.Jre19Compat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExecutor
(Thread thread) Obtains the executor, if any, used to create the provided thread.Methods inherited from class org.apache.tomcat.util.compat.JreCompat
callAs, createVirtualThreadBuilder, disableCanonCaches, getInstance, isCanonCachesDisabled, isGraalAvailable, isJre19Available, isJre21Available, isJre22Available, threadBuilderStart
-
Constructor Details
-
Jre19Compat
public Jre19Compat()
-
-
Method Details
-
getExecutor
public Object getExecutor(Thread thread) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException Description copied from class:JreCompat
Obtains the executor, if any, used to create the provided thread.- Overrides:
getExecutor
in classJreCompat
- Parameters:
thread
- The thread to examine- Returns:
- The executor, if any, that created the provided thread
- Throws:
NoSuchFieldException
- If a field used via reflection to obtain the executor cannot be foundSecurityException
- If a security exception occurs while trying to identify the executorIllegalArgumentException
- If the instance object does not match the class of the field when obtaining a field value via reflectionIllegalAccessException
- If a field is not accessible due to access restrictions
-