Class SuppressingInheritedAccessControlContextThreadFactory

  • All Implemented Interfaces:
    java.util.concurrent.ThreadFactory

    public class SuppressingInheritedAccessControlContextThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    ThreadFactory to create threads with empty inherited java.security.AccessControlContext.
    It delegates thread creation to Executors default thread factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Thread newThread​(java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

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

      • SuppressingInheritedAccessControlContextThreadFactory

        public SuppressingInheritedAccessControlContextThreadFactory​(java.lang.String threadNamePrefix,
                                                                     javax.security.auth.Subject subject)
    • Method Detail

      • newThread

        public java.lang.Thread newThread​(java.lang.Runnable runnable)
        Specified by:
        newThread in interface java.util.concurrent.ThreadFactory