MockTicker Type — netty Architecture
Architecture documentation for the MockTicker type/interface in MockTicker.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b36782bc_22b6_7be4_76d7_7c577d4772f5["MockTicker"] 85d08ac3_f423_a52a_3773_b9ce117ec897["MockTicker.java"] b36782bc_22b6_7be4_76d7_7c577d4772f5 -->|defined in| 85d08ac3_f423_a52a_3773_b9ce117ec897 style b36782bc_22b6_7be4_76d7_7c577d4772f5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/MockTicker.java lines 25–48
public interface MockTicker extends Ticker {
@Override
default long initialNanoTime() {
return 0;
}
/**
* Advances the current {@link #nanoTime()} by the given amount of time.
*
* @param amount the amount of time to advance this ticker by.
* @param unit the {@link TimeUnit} of {@code amount}.
*/
void advance(long amount, TimeUnit unit);
/**
* Advances the current {@link #nanoTime()} by the given amount of time.
*
* @param amountMillis the number of milliseconds to advance this ticker by.
*/
default void advanceMillis(long amountMillis) {
advance(amountMillis, TimeUnit.MILLISECONDS);
}
}
Source
Frequently Asked Questions
What is the MockTicker type?
MockTicker is a type/interface in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/MockTicker.java.
Where is MockTicker defined?
MockTicker is defined in common/src/main/java/io/netty/util/concurrent/MockTicker.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free