Interface PinnedThreadFactory

    • Method Detail

      • newThread

        org.sheinbergon.needle.PinnedThread newThread​(@Nonnull
                                                      java.lang.Runnable r)
        Constructs a new PinnedThread.
        Specified by:
        newThread in interface java.util.concurrent.ThreadFactory
        Parameters:
        r - a runnable to be executed by new thread instance
        Returns:
        instantiated PinnedThread, or null if the request to create a thread is rejected