JavaScript is disabled on your browser.
Skip navigation links
io.netty.util.concurrent

Class FastThreadLocalThread

    • Constructor Detail

      • FastThreadLocalThread

        public FastThreadLocalThread()
      • FastThreadLocalThread

        public FastThreadLocalThread(Runnable target)
      • FastThreadLocalThread

        public FastThreadLocalThread(String name)
      • FastThreadLocalThread

        public FastThreadLocalThread(Runnable target,
         String name)
    • Method Detail

      • threadLocalMap

        public final InternalThreadLocalMap threadLocalMap()
        Returns the internal data structure that keeps the thread-local variables bound to this thread. Note that this method is for internal use only, and thus is subject to change at any time.
      • setThreadLocalMap

        public final void setThreadLocalMap(InternalThreadLocalMap threadLocalMap)
        Sets the internal data structure that keeps the thread-local variables bound to this thread. Note that this method is for internal use only, and thus is subject to change at any time.
      • permitBlockingCalls

        public boolean permitBlockingCalls()
        Query whether this thread is allowed to perform blocking calls or not. FastThreadLocalThreads are often used in event-loops, where blocking calls are forbidden in order to prevent event-loop stalls, so this method returns false by default.

        Subclasses of FastThreadLocalThread can override this method if they are not meant to be used for running event-loops.

        Returns:
        false, unless overriden by a subclass.
Skip navigation links

Copyright © 2008–2025 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /