scheduleWithFixedDelay() — netty Function Reference
Architecture documentation for the scheduleWithFixedDelay() function in AbstractScheduledEventExecutor.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a4c87dc3_c94e_ee64_91be_0faa465c7dd3["scheduleWithFixedDelay()"] d3e4d355_bb72_2545_e37d_dc0891709c08["AbstractScheduledEventExecutor"] a4c87dc3_c94e_ee64_91be_0faa465c7dd3 -->|defined in| d3e4d355_bb72_2545_e37d_dc0891709c08 cd7e3707_0e47_80c6_2aba_4e659d35daf8["validateScheduled0()"] a4c87dc3_c94e_ee64_91be_0faa465c7dd3 -->|calls| cd7e3707_0e47_80c6_2aba_4e659d35daf8 fa02f52d_6040_47ba_1b99_ab109df248e1["schedule()"] a4c87dc3_c94e_ee64_91be_0faa465c7dd3 -->|calls| fa02f52d_6040_47ba_1b99_ab109df248e1 4569537b_c8d5_7028_c052_a17f44b47fa4["deadlineNanos()"] a4c87dc3_c94e_ee64_91be_0faa465c7dd3 -->|calls| 4569537b_c8d5_7028_c052_a17f44b47fa4 1bfb3315_93ae_ff94_32ad_7e00bc671264["getCurrentTimeNanos()"] a4c87dc3_c94e_ee64_91be_0faa465c7dd3 -->|calls| 1bfb3315_93ae_ff94_32ad_7e00bc671264 style a4c87dc3_c94e_ee64_91be_0faa465c7dd3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java lines 303–321
@Override
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) {
ObjectUtil.checkNotNull(command, "command");
ObjectUtil.checkNotNull(unit, "unit");
if (initialDelay < 0) {
throw new IllegalArgumentException(
String.format("initialDelay: %d (expected: >= 0)", initialDelay));
}
if (delay <= 0) {
throw new IllegalArgumentException(
String.format("delay: %d (expected: > 0)", delay));
}
validateScheduled0(initialDelay, unit);
validateScheduled0(delay, unit);
return schedule(new ScheduledFutureTask<Void>(
this, command, deadlineNanos(getCurrentTimeNanos(), unit.toNanos(initialDelay)), -unit.toNanos(delay)));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does scheduleWithFixedDelay() do?
scheduleWithFixedDelay() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java.
Where is scheduleWithFixedDelay() defined?
scheduleWithFixedDelay() is defined in common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java at line 303.
What does scheduleWithFixedDelay() call?
scheduleWithFixedDelay() calls 4 function(s): deadlineNanos, getCurrentTimeNanos, schedule, validateScheduled0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free