testScheduleBigDelayNotOverflow() — netty Function Reference
Architecture documentation for the testScheduleBigDelayNotOverflow() function in EpollEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 870f693e_1e15_5fe3_b88d_ed928d403782["testScheduleBigDelayNotOverflow()"] bfe6ddcc_7826_010d_3f8f_df4f5668832e["EpollEventLoopTest"] 870f693e_1e15_5fe3_b88d_ed928d403782 -->|defined in| bfe6ddcc_7826_010d_3f8f_df4f5668832e style 870f693e_1e15_5fe3_b88d_ed928d403782 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollEventLoopTest.java lines 69–98
@Test
public void testScheduleBigDelayNotOverflow() {
final AtomicReference<Throwable> capture = new AtomicReference<Throwable>();
final EventLoopGroup group = new EpollEventLoop(null,
new ThreadPerTaskExecutor(new DefaultThreadFactory(getClass())), eventLoop -> new EpollIoHandler(
eventLoop, 0, DefaultSelectStrategyFactory.INSTANCE.newSelectStrategy()) {
@Override
void handleLoopException(Throwable t) {
capture.set(t);
super.handleLoopException(t);
}
});
try {
final EventLoop eventLoop = group.next();
Future<?> future = eventLoop.schedule(new Runnable() {
@Override
public void run() {
// NOOP
}
}, Long.MAX_VALUE, TimeUnit.MILLISECONDS);
assertFalse(future.awaitUninterruptibly(1000));
assertTrue(future.cancel(true));
assertNull(capture.get());
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testScheduleBigDelayNotOverflow() do?
testScheduleBigDelayNotOverflow() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollEventLoopTest.java.
Where is testScheduleBigDelayNotOverflow() defined?
testScheduleBigDelayNotOverflow() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollEventLoopTest.java at line 69.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free