setProgress() — netty Function Reference
Architecture documentation for the setProgress() function in DefaultProgressivePromise.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a68b0318_d647_7094_b0cb_e431e6d372a7["setProgress()"] b24fe5e0_3f85_bfcd_60fb_d12dfc91b56a["DefaultProgressivePromise"] a68b0318_d647_7094_b0cb_e431e6d372a7 -->|defined in| b24fe5e0_3f85_bfcd_60fb_d12dfc91b56a style a68b0318_d647_7094_b0cb_e431e6d372a7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/DefaultProgressivePromise.java lines 37–54
@Override
public ProgressivePromise<V> setProgress(long progress, long total) {
if (total < 0) {
// total unknown
total = -1; // normalize
checkPositiveOrZero(progress, "progress");
} else if (progress < 0 || progress > total) {
throw new IllegalArgumentException(
"progress: " + progress + " (expected: 0 <= progress <= total (" + total + "))");
}
if (isDone()) {
throw new IllegalStateException("complete already");
}
notifyProgressiveListeners(progress, total);
return this;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setProgress() do?
setProgress() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/DefaultProgressivePromise.java.
Where is setProgress() defined?
setProgress() is defined in common/src/main/java/io/netty/util/concurrent/DefaultProgressivePromise.java at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free