Package org.apache.tomcat.util.compat
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 TypeMethodDescriptionCreate a thread builder for virtual threads using the given name to name the threads.Return Unix domain socket address for given path.Create server socket channel using the Unix domain socket ProtocolFamily.Create socket channel using the Unix domain socket ProtocolFamily.voidthreadBuilderStart(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, isJre16Available, 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
 
- 
getUnixDomainSocketAddressDescription copied from class:JreCompatReturn Unix domain socket address for given path.- Overrides:
- getUnixDomainSocketAddressin class- JreCompat
- Parameters:
- path- The path
- Returns:
- the socket address
 
- 
openUnixDomainServerSocketChannelDescription copied from class:JreCompatCreate server socket channel using the Unix domain socket ProtocolFamily.- Overrides:
- openUnixDomainServerSocketChannelin class- JreCompat
- Returns:
- the server socket channel
 
- 
openUnixDomainSocketChannelDescription copied from class:JreCompatCreate socket channel using the Unix domain socket ProtocolFamily.- Overrides:
- openUnixDomainSocketChannelin class- JreCompat
- Returns:
- the socket channel
 
 
-