Home / Function/ offer() — netty Function Reference

offer() — netty Function Reference

Architecture documentation for the offer() function in MaxCapacityQueue.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  2c844ef3_d966_ff6f_c27f_68480c011860["offer()"]
  2f8cb388_06c9_4cd3_e8fb_92b7b3c6f9da["MaxCapacityQueue"]
  2c844ef3_d966_ff6f_c27f_68480c011860 -->|defined in| 2f8cb388_06c9_4cd3_e8fb_92b7b3c6f9da
  64f183c7_e11a_f3c1_687f_a47c2ebd5066["add()"]
  64f183c7_e11a_f3c1_687f_a47c2ebd5066 -->|calls| 2c844ef3_d966_ff6f_c27f_68480c011860
  3275a1d7_eeb8_1c70_6804_554dd911c211["size()"]
  2c844ef3_d966_ff6f_c27f_68480c011860 -->|calls| 3275a1d7_eeb8_1c70_6804_554dd911c211
  style 2c844ef3_d966_ff6f_c27f_68480c011860 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/MaxCapacityQueue.java lines 39–45

    @Override
    public boolean offer(E element) {
        if (maxCapacity <= queue.size()) {
            return false;
        }
        return queue.offer(element);
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does offer() do?
offer() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/MaxCapacityQueue.java.
Where is offer() defined?
offer() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/MaxCapacityQueue.java at line 39.
What does offer() call?
offer() calls 1 function(s): size.
What calls offer()?
offer() is called by 1 function(s): add.

Analyze Your Own Codebase

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

Try Supermodel Free