Home / Function/ scheduleAtFixedRate() — netty Function Reference

scheduleAtFixedRate() — netty Function Reference

Architecture documentation for the scheduleAtFixedRate() function in AbstractScheduledEventExecutor.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  baf6ff07_2a71_25a5_0255_78e5c35e2634["scheduleAtFixedRate()"]
  d3e4d355_bb72_2545_e37d_dc0891709c08["AbstractScheduledEventExecutor"]
  baf6ff07_2a71_25a5_0255_78e5c35e2634 -->|defined in| d3e4d355_bb72_2545_e37d_dc0891709c08
  cd7e3707_0e47_80c6_2aba_4e659d35daf8["validateScheduled0()"]
  baf6ff07_2a71_25a5_0255_78e5c35e2634 -->|calls| cd7e3707_0e47_80c6_2aba_4e659d35daf8
  fa02f52d_6040_47ba_1b99_ab109df248e1["schedule()"]
  baf6ff07_2a71_25a5_0255_78e5c35e2634 -->|calls| fa02f52d_6040_47ba_1b99_ab109df248e1
  4569537b_c8d5_7028_c052_a17f44b47fa4["deadlineNanos()"]
  baf6ff07_2a71_25a5_0255_78e5c35e2634 -->|calls| 4569537b_c8d5_7028_c052_a17f44b47fa4
  1bfb3315_93ae_ff94_32ad_7e00bc671264["getCurrentTimeNanos()"]
  baf6ff07_2a71_25a5_0255_78e5c35e2634 -->|calls| 1bfb3315_93ae_ff94_32ad_7e00bc671264
  style baf6ff07_2a71_25a5_0255_78e5c35e2634 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java lines 284–301

    @Override
    public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {
        ObjectUtil.checkNotNull(command, "command");
        ObjectUtil.checkNotNull(unit, "unit");
        if (initialDelay < 0) {
            throw new IllegalArgumentException(
                    String.format("initialDelay: %d (expected: >= 0)", initialDelay));
        }
        if (period <= 0) {
            throw new IllegalArgumentException(
                    String.format("period: %d (expected: > 0)", period));
        }
        validateScheduled0(initialDelay, unit);
        validateScheduled0(period, unit);

        return schedule(new ScheduledFutureTask<Void>(
                this, command, deadlineNanos(getCurrentTimeNanos(), unit.toNanos(initialDelay)), unit.toNanos(period)));
    }

Domain

Subdomains

Frequently Asked Questions

What does scheduleAtFixedRate() do?
scheduleAtFixedRate() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java.
Where is scheduleAtFixedRate() defined?
scheduleAtFixedRate() is defined in common/src/main/java/io/netty/util/concurrent/AbstractScheduledEventExecutor.java at line 284.
What does scheduleAtFixedRate() call?
scheduleAtFixedRate() 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