Class ThreadUtils


  • public class ThreadUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void callAs​(javax.security.auth.Subject subject, java.util.concurrent.Callable<java.security.PrivilegedExceptionAction<java.lang.Void>> action)  
      static long getId​(java.lang.Thread thread)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadUtils

        public ThreadUtils()
    • Method Detail

      • getId

        public static long getId​(java.lang.Thread thread)
      • callAs

        public static void callAs​(javax.security.auth.Subject subject,
                                  java.util.concurrent.Callable<java.security.PrivilegedExceptionAction<java.lang.Void>> action)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception