Class SecureScriptThreadMxBeanWrapper
java.lang.Object
org.flowable.scripting.secure.impl.SecureScriptThreadMxBeanWrapper
This class wraps access to the com.sun.management.ThreadMXBean and makes sure that on JDK's without the class no ClassNotFoundException (or others) are thrown.
This class should only be used if it is verified this class is on the classpath, for example by checking the class through reflection.
- Author:
- Joram Barrez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
threadMXBean
-
-
Constructor Details
-
SecureScriptThreadMxBeanWrapper
public SecureScriptThreadMxBeanWrapper()
-
-
Method Details
-
getThreadAllocatedBytes
public long getThreadAllocatedBytes(long threadId)
-