Home / Function/ failSpliceIfClosed() — netty Function Reference

failSpliceIfClosed() — netty Function Reference

Architecture documentation for the failSpliceIfClosed() function in AbstractEpollStreamChannel.java from the netty codebase.

Function java Buffer Search calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  9018916a_ad69_8dc8_7d33_1de39ca95b1c["failSpliceIfClosed()"]
  6ec314cd_b42f_72bd_344b_f54212398142["AbstractEpollStreamChannel"]
  9018916a_ad69_8dc8_7d33_1de39ca95b1c -->|defined in| 6ec314cd_b42f_72bd_344b_f54212398142
  5a972d14_e636_b2d4_6755_e61146b73433["ChannelFuture()"]
  5a972d14_e636_b2d4_6755_e61146b73433 -->|calls| 9018916a_ad69_8dc8_7d33_1de39ca95b1c
  87859355_6ea4_99a9_9451_4eb364a4f6c7["clearSpliceQueue()"]
  9018916a_ad69_8dc8_7d33_1de39ca95b1c -->|calls| 87859355_6ea4_99a9_9451_4eb364a4f6c7
  style 9018916a_ad69_8dc8_7d33_1de39ca95b1c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java lines 226–243

    private void failSpliceIfClosed(ChannelPromise promise) {
        if (!isOpen()) {
            // Seems like the Channel was closed in the meantime try to fail the promise to prevent any
            // cases where a future may not be notified otherwise.
            if (!promise.isDone()) {
                final ClosedChannelException ex = new ClosedChannelException();
                if (promise.tryFailure(ex)) {
                    eventLoop().execute(new Runnable() {
                        @Override
                        public void run() {
                            // Call this via the EventLoop as it is a MPSC queue.
                            clearSpliceQueue(ex);
                        }
                    });
                }
            }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does failSpliceIfClosed() do?
failSpliceIfClosed() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java.
Where is failSpliceIfClosed() defined?
failSpliceIfClosed() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java at line 226.
What does failSpliceIfClosed() call?
failSpliceIfClosed() calls 1 function(s): clearSpliceQueue.
What calls failSpliceIfClosed()?
failSpliceIfClosed() is called by 1 function(s): ChannelFuture.

Analyze Your Own Codebase

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

Try Supermodel Free