Class SystemAuthorityThreadFactory

  • All Implemented Interfaces:
    ThreadFactory

    public class SystemAuthorityThreadFactory
    extends Object
    implements ThreadFactory
    ThreadFactory that allows you to name the threads and create a thread with a All threads created with this factory use SYSTEM_AUTHORITY security context.
    • Constructor Detail

      • SystemAuthorityThreadFactory

        public SystemAuthorityThreadFactory​(String threadName)
    • Method Detail

      • newThread

        @NotNull
        public <T extends Thread> T newThread​(@NotNull
                                              @NotNull Class<T> threadClass,
                                              @NotNull
                                              @NotNull Runnable r)