cancelWillCallCallback() — netty Function Reference
Architecture documentation for the cancelWillCallCallback() function in HashedWheelTimerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3b975c3b_3f45_bf67_3291_ba277b466824["cancelWillCallCallback()"] 00b49e45_9607_bed0_2d5f_fd3bdc9b959f["HashedWheelTimerTest"] 3b975c3b_3f45_bf67_3291_ba277b466824 -->|defined in| 00b49e45_9607_bed0_2d5f_fd3bdc9b959f c46ba577_0225_1b73_1919_e2b7cb5a1767["TimerTask()"] 3b975c3b_3f45_bf67_3291_ba277b466824 -->|calls| c46ba577_0225_1b73_1919_e2b7cb5a1767 style 3b975c3b_3f45_bf67_3291_ba277b466824 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/HashedWheelTimerTest.java lines 303–322
@org.junit.jupiter.api.Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)
public void cancelWillCallCallback() throws InterruptedException {
final CountDownLatch latch = new CountDownLatch(1);
final HashedWheelTimer timer = new HashedWheelTimer();
final Timeout t1 = timer.newTimeout(new TimerTask() {
@Override
public void run(Timeout timeout) {
fail();
}
@Override
public void cancelled(Timeout timeout) {
latch.countDown();
}
}, 90, TimeUnit.MILLISECONDS);
assertEquals(1, timer.pendingTimeouts());
t1.cancel();
latch.await();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does cancelWillCallCallback() do?
cancelWillCallCallback() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/HashedWheelTimerTest.java.
Where is cancelWillCallCallback() defined?
cancelWillCallCallback() is defined in common/src/test/java/io/netty/util/HashedWheelTimerTest.java at line 303.
What does cancelWillCallCallback() call?
cancelWillCallCallback() calls 1 function(s): TimerTask.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free