Home / Class/ DataRefresher Class — netty Architecture

DataRefresher Class — netty Architecture

Architecture documentation for the DataRefresher class in NoPriorityByteDistributionBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f7629a16_f360_0779_cf07_e564e4e76c3f["DataRefresher"]
  279fab0c_16a0_85c7_c9ea_cb95941ef43a["NoPriorityByteDistributionBenchmark.java"]
  f7629a16_f360_0779_cf07_e564e4e76c3f -->|defined in| 279fab0c_16a0_85c7_c9ea_cb95941ef43a
  f5519e43_c21a_6a69_1a19_795af45af4fd["DataRefresher()"]
  f7629a16_f360_0779_cf07_e564e4e76c3f -->|method| f5519e43_c21a_6a69_1a19_795af45af4fd
  c05b6618_aafc_23bd_b1d4_d787e83c70cd["add()"]
  f7629a16_f360_0779_cf07_e564e4e76c3f -->|method| c05b6618_aafc_23bd_b1d4_d787e83c70cd
  7cca7619_d1f7_9ecd_7b9b_6fa06fbe56c9["refreshData()"]
  f7629a16_f360_0779_cf07_e564e4e76c3f -->|method| 7cca7619_d1f7_9ecd_7b9b_6fa06fbe56c9

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/http2/NoPriorityByteDistributionBenchmark.java lines 225–243

    private final class DataRefresher {
        private final Http2Stream stream;
        private int data;

        private DataRefresher(Http2Stream stream) {
            this.stream = stream;
        }

        void add(int data) {
            this.data += data;
        }

        void refreshData() {
            if (data > 0) {
                addData(stream, data);
                data = 0;
            }
        }
    }

Frequently Asked Questions

What is the DataRefresher class?
DataRefresher is a class in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/http2/NoPriorityByteDistributionBenchmark.java.
Where is DataRefresher defined?
DataRefresher is defined in microbench/src/main/java/io/netty/microbench/http2/NoPriorityByteDistributionBenchmark.java at line 225.

Analyze Your Own Codebase

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

Try Supermodel Free