Home / Type/ Timer Type — netty Architecture

Timer Type — netty Architecture

Architecture documentation for the Timer type/interface in Timer.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ab48478b_69ac_2d74_ed80_025b1bcc2b18["Timer"]
  f734021d_cfe7_acae_6045_9bbc98aabbc0["Timer.java"]
  ab48478b_69ac_2d74_ed80_025b1bcc2b18 -->|defined in| f734021d_cfe7_acae_6045_9bbc98aabbc0
  style ab48478b_69ac_2d74_ed80_025b1bcc2b18 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/Timer.java lines 26–48

public interface Timer {

    /**
     * Schedules the specified {@link TimerTask} for one-time execution after
     * the specified delay.
     *
     * @return a handle which is associated with the specified task
     *
     * @throws IllegalStateException       if this timer has been {@linkplain #stop() stopped} already
     * @throws RejectedExecutionException if the pending timeouts are too many and creating new timeout
     *                                    can cause instability in the system.
     */
    Timeout newTimeout(TimerTask task, long delay, TimeUnit unit);

    /**
     * Releases all resources acquired by this {@link Timer} and cancels all
     * tasks which were scheduled but not executed yet.
     *
     * @return the handles associated with the tasks which were canceled by
     *         this method
     */
    Set<Timeout> stop();
}

Frequently Asked Questions

What is the Timer type?
Timer is a type/interface in the netty codebase, defined in common/src/main/java/io/netty/util/Timer.java.
Where is Timer defined?
Timer is defined in common/src/main/java/io/netty/util/Timer.java at line 26.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free