Home / Function/ discardEmptyOutboundBuffers() — netty Function Reference

discardEmptyOutboundBuffers() — netty Function Reference

Architecture documentation for the discardEmptyOutboundBuffers() function in CloseNotifyTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e3e1dd51_18ae_e079_751c_f22cc096ec24["discardEmptyOutboundBuffers()"]
  91635dfc_456c_fec9_4413_a1ee45d49032["CloseNotifyTest"]
  e3e1dd51_18ae_e079_751c_f22cc096ec24 -->|defined in| 91635dfc_456c_fec9_4413_a1ee45d49032
  c8dc5de5_36bd_d22b_8ec3_7c93cc9586c8["eventsOrder()"]
  c8dc5de5_36bd_d22b_8ec3_7c93cc9586c8 -->|calls| e3e1dd51_18ae_e079_751c_f22cc096ec24
  style e3e1dd51_18ae_e079_751c_f22cc096ec24 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/CloseNotifyTest.java lines 213–224

    private static void discardEmptyOutboundBuffers(EmbeddedChannel channel) {
        Queue<Object> outbound = channel.outboundMessages();
        while (outbound.peek() instanceof ByteBuf) {
            ByteBuf buf = (ByteBuf) outbound.peek();
            if (!buf.isReadable()) {
                buf.release();
                outbound.poll();
            } else {
                break;
            }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does discardEmptyOutboundBuffers() do?
discardEmptyOutboundBuffers() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/CloseNotifyTest.java.
Where is discardEmptyOutboundBuffers() defined?
discardEmptyOutboundBuffers() is defined in handler/src/test/java/io/netty/handler/ssl/CloseNotifyTest.java at line 213.
What calls discardEmptyOutboundBuffers()?
discardEmptyOutboundBuffers() is called by 1 function(s): eventsOrder.

Analyze Your Own Codebase

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

Try Supermodel Free