Home / Function/ tryProgress() — netty Function Reference

tryProgress() — netty Function Reference

Architecture documentation for the tryProgress() function in DefaultProgressivePromise.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  79268a6f_29db_afe5_8c2f_3cd63cbb0156["tryProgress()"]
  b24fe5e0_3f85_bfcd_60fb_d12dfc91b56a["DefaultProgressivePromise"]
  79268a6f_29db_afe5_8c2f_3cd63cbb0156 -->|defined in| b24fe5e0_3f85_bfcd_60fb_d12dfc91b56a
  style 79268a6f_29db_afe5_8c2f_3cd63cbb0156 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/DefaultProgressivePromise.java lines 56–69

    @Override
    public boolean tryProgress(long progress, long total) {
        if (total < 0) {
            total = -1;
            if (progress < 0 || isDone()) {
                return false;
            }
        } else if (progress < 0 || progress > total || isDone()) {
            return false;
        }

        notifyProgressiveListeners(progress, total);
        return true;
    }

Domain

Subdomains

Frequently Asked Questions

What does tryProgress() do?
tryProgress() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/DefaultProgressivePromise.java.
Where is tryProgress() defined?
tryProgress() is defined in common/src/main/java/io/netty/util/concurrent/DefaultProgressivePromise.java at line 56.

Analyze Your Own Codebase

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

Try Supermodel Free