Home / Function/ setOpWrite() — netty Function Reference

setOpWrite() — netty Function Reference

Architecture documentation for the setOpWrite() function in AbstractNioByteChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a60141c3_7318_47c8_4803_42326e72fc35["setOpWrite()"]
  81dd42bf_4dab_740c_6405_14423e9ad1f8["AbstractNioByteChannel"]
  a60141c3_7318_47c8_4803_42326e72fc35 -->|defined in| 81dd42bf_4dab_740c_6405_14423e9ad1f8
  46da3fe7_43e8_758e_f039_58b516d9c088["incompleteWrite()"]
  46da3fe7_43e8_758e_f039_58b516d9c088 -->|calls| a60141c3_7318_47c8_4803_42326e72fc35
  style a60141c3_7318_47c8_4803_42326e72fc35 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/nio/AbstractNioByteChannel.java lines 335–345

    protected final void setOpWrite() {
        final IoRegistration registration = registration();
        // Check first if the key is still valid as it may be canceled as part of the deregistration
        // from the EventLoop
        // See https://github.com/netty/netty/issues/2104
        if (!registration.isValid()) {
            return;
        }

        addAndSubmit(NioIoOps.WRITE);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does setOpWrite() do?
setOpWrite() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/nio/AbstractNioByteChannel.java.
Where is setOpWrite() defined?
setOpWrite() is defined in transport/src/main/java/io/netty/channel/nio/AbstractNioByteChannel.java at line 335.
What calls setOpWrite()?
setOpWrite() is called by 1 function(s): incompleteWrite.

Analyze Your Own Codebase

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

Try Supermodel Free