Class SecureScriptThreadMxBeanWrapper
- java.lang.Object
-
- org.flowable.scripting.secure.impl.SecureScriptThreadMxBeanWrapper
-
public class SecureScriptThreadMxBeanWrapper extends Object
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 Modifier and Type Field Description protected com.sun.management.ThreadMXBeanthreadMXBean
-
Constructor Summary
Constructors Constructor Description SecureScriptThreadMxBeanWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetThreadAllocatedBytes(long threadId)
-