Home / Function/ advance() — netty Function Reference

advance() — netty Function Reference

Architecture documentation for the advance() function in EmbeddedEventLoop.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8abd9974_413e_9132_aa3b_9d111946747d["advance()"]
  28e073ef_ec3c_0a2d_cff9_961e8f9320fa["FreezableTicker"]
  8abd9974_413e_9132_aa3b_9d111946747d -->|defined in| 28e073ef_ec3c_0a2d_cff9_961e8f9320fa
  style 8abd9974_413e_9132_aa3b_9d111946747d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/embedded/EmbeddedEventLoop.java lines 188–198

        @Override
        public void advance(long amount, TimeUnit unit) {
            long nanos = unit.toNanos(amount);
            if (timeFrozen) {
                frozenTimestamp += nanos;
            } else {
                // startTime is subtracted from nanoTime, so increasing the startTime will advance
                // getCurrentTimeNanos
                startTime -= nanos;
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does advance() do?
advance() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/embedded/EmbeddedEventLoop.java.
Where is advance() defined?
advance() is defined in transport/src/main/java/io/netty/channel/embedded/EmbeddedEventLoop.java at line 188.

Analyze Your Own Codebase

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

Try Supermodel Free