Class Jre21Compat
java.lang.Object
org.apache.tomcat.util.compat.JreCompat
org.apache.tomcat.util.compat.Jre19Compat
org.apache.tomcat.util.compat.Jre21Compat
- Direct Known Subclasses:
- Jre22Compat
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> TCreate a thread builder for virtual threads using the given name to name the threads.booleanDisable the global canonical file cache.booleanvoidthreadBuilderStart(Object threadBuilder, Runnable command) Create a thread with the given thread builder and use it to execute the given runnable.Methods inherited from class org.apache.tomcat.util.compat.Jre19CompatgetExecutorMethods inherited from class org.apache.tomcat.util.compat.JreCompatgetInstance, isGraalAvailable, isJre19Available, isJre21Available, isJre22Available
- 
Constructor Details- 
Jre21Compatpublic Jre21Compat()
 
- 
- 
Method Details- 
createVirtualThreadBuilderDescription copied from class:JreCompatCreate a thread builder for virtual threads using the given name to name the threads.- Overrides:
- createVirtualThreadBuilderin class- JreCompat
- Parameters:
- name- The base name for the threads
- Returns:
- The thread buidler for virtual threads
 
- 
threadBuilderStartDescription copied from class:JreCompatCreate a thread with the given thread builder and use it to execute the given runnable.- Overrides:
- threadBuilderStartin class- JreCompat
- Parameters:
- threadBuilder- The thread builder to use to create a thread
- command- The command to run
 
- 
callAs- Overrides:
- callAsin class- JreCompat
- Throws:
- CompletionException
 
- 
isCanonCachesDisabledpublic boolean isCanonCachesDisabled()- Overrides:
- isCanonCachesDisabledin class- JreCompat
 
- 
disableCanonCachespublic boolean disableCanonCaches()Description copied from class:JreCompatDisable the global canonical file cache.- Overrides:
- disableCanonCachesin class- JreCompat
- Returns:
- trueif the global canonical file cache was already disabled prior to this call or was disabled as a result of this call, otherwise- false
 
 
-