Package org.apache.pulsar.tests
Class FastThreadLocalStateCleaner
java.lang.Object
org.apache.pulsar.tests.FastThreadLocalStateCleaner
Cleanup Thread Local state attach to Netty's FastThreadLocal.
This is not thread-safe, but that aspect is ignored.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupAllFastThreadLocals(Thread thread, BiConsumer<Thread, Object> cleanedValueListener) voidcleanupAllFastThreadLocals(BiConsumer<Thread, Object> cleanedValueListener) static boolean
-
Constructor Details
-
FastThreadLocalStateCleaner
-
-
Method Details
-
cleanupAllFastThreadLocals
public void cleanupAllFastThreadLocals(Thread thread, BiConsumer<Thread, Object> cleanedValueListener) -
cleanupAllFastThreadLocals
-
isEnabled
public static boolean isEnabled()
-