testRemoveAll() — netty Function Reference
Architecture documentation for the testRemoveAll() function in FastThreadLocalTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fca80ece_95ff_ff9f_ebc8_978fc1aab436["testRemoveAll()"] c9cb652b_4141_8af2_1f8b_c47765bb30f9["FastThreadLocalTest"] fca80ece_95ff_ff9f_ebc8_978fc1aab436 -->|defined in| c9cb652b_4141_8af2_1f8b_c47765bb30f9 3f581515_c12c_d16f_0df0_8c5ca7e9a218["testRemoveAllFromFTLThread()"] 3f581515_c12c_d16f_0df0_8c5ca7e9a218 -->|calls| fca80ece_95ff_ff9f_ebc8_978fc1aab436 9937339a_65f9_5ac1_da91_c4ab3f60d753["onRemoval()"] fca80ece_95ff_ff9f_ebc8_978fc1aab436 -->|calls| 9937339a_65f9_5ac1_da91_c4ab3f60d753 style fca80ece_95ff_ff9f_ebc8_978fc1aab436 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java lines 86–105
@Test
@Timeout(value = 10000, unit = TimeUnit.MILLISECONDS)
public void testRemoveAll() throws Exception {
final AtomicBoolean removed = new AtomicBoolean();
final FastThreadLocal<Boolean> var = new FastThreadLocal<Boolean>() {
@Override
protected void onRemoval(Boolean value) {
removed.set(true);
}
};
// Initialize a thread-local variable.
assertNull(var.get());
assertEquals(1, FastThreadLocal.size());
// And then remove it.
FastThreadLocal.removeAll();
assertTrue(removed.get());
assertEquals(0, FastThreadLocal.size());
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does testRemoveAll() do?
testRemoveAll() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java.
Where is testRemoveAll() defined?
testRemoveAll() is defined in common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java at line 86.
What does testRemoveAll() call?
testRemoveAll() calls 1 function(s): onRemoval.
What calls testRemoveAll()?
testRemoveAll() is called by 1 function(s): testRemoveAllFromFTLThread.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free