Package org.apache.tomcat.util.compat
Class Jre19Compat
java.lang.Object
org.apache.tomcat.util.compat.JreCompat
org.apache.tomcat.util.compat.Jre19Compat
- Direct Known Subclasses:
- Jre21Compat
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetExecutor(Thread thread) Obtains the executor, if any, used to create the provided thread.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.Methods inherited from class org.apache.tomcat.util.compat.JreCompatcreateVirtualThreadBuilder, getInstance, isGraalAvailable, isJre16Available, isJre19Available, isJre21Available, isJre22Available, threadBuilderStart
- 
Constructor Details- 
Jre19Compatpublic Jre19Compat()
 
- 
- 
Method Details- 
getExecutorpublic Object getExecutor(Thread thread) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException Description copied from class:JreCompatObtains the executor, if any, used to create the provided thread.- Overrides:
- getExecutorin class- JreCompat
- 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 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
 
- 
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
 
 
-