Home / Class/ AbstractServerChannel Class — netty Architecture

AbstractServerChannel Class — netty Architecture

Architecture documentation for the AbstractServerChannel class in AbstractServerChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74["AbstractServerChannel"]
  8fcf98bd_bc7c_4289_cbf5_dde991c6f3d4["AbstractServerChannel.java"]
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74 -->|defined in| 8fcf98bd_bc7c_4289_cbf5_dde991c6f3d4
  0d13f409_6b62_dd9d_fec7_364749eaaefc["AbstractServerChannel()"]
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74 -->|method| 0d13f409_6b62_dd9d_fec7_364749eaaefc
  8eab8db5_35a6_6375_f92c_b351a4530001["ChannelMetadata()"]
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74 -->|method| 8eab8db5_35a6_6375_f92c_b351a4530001
  78f76099_2ed2_d942_b794_0f227695653e["SocketAddress()"]
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74 -->|method| 78f76099_2ed2_d942_b794_0f227695653e
  12054f5a_3afe_ad2b_9c2f_a78949c12a25["doDisconnect()"]
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74 -->|method| 12054f5a_3afe_ad2b_9c2f_a78949c12a25
  3488505a_45fd_4743_bec7_c1e8c8b530c8["AbstractUnsafe()"]
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74 -->|method| 3488505a_45fd_4743_bec7_c1e8c8b530c8
  9ae2e4c8_a016_a7d5_a834_5dbd08ee57bc["doWrite()"]
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74 -->|method| 9ae2e4c8_a016_a7d5_a834_5dbd08ee57bc
  3aff84a4_ad55_6c08_7574_5ea8c8e05265["Object()"]
  2b7cbba9_dfa6_3de4_f9b2_b36d4ed0aa74 -->|method| 3aff84a4_ad55_6c08_7574_5ea8c8e05265

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/AbstractServerChannel.java lines 31–82

public abstract class AbstractServerChannel extends AbstractChannel implements ServerChannel {
    private static final ChannelMetadata METADATA = new ChannelMetadata(false, 16);

    /**
     * Creates a new instance.
     */
    protected AbstractServerChannel() {
        super(null);
    }

    @Override
    public ChannelMetadata metadata() {
        return METADATA;
    }

    @Override
    public SocketAddress remoteAddress() {
        return null;
    }

    @Override
    protected SocketAddress remoteAddress0() {
        return null;
    }

    @Override
    protected void doDisconnect() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Override
    protected AbstractUnsafe newUnsafe() {
        return new DefaultServerUnsafe();
    }

    @Override
    protected void doWrite(ChannelOutboundBuffer in) throws Exception {
        throw new UnsupportedOperationException();
    }

    @Override
    protected final Object filterOutboundMessage(Object msg) {
        throw new UnsupportedOperationException();
    }

    private final class DefaultServerUnsafe extends AbstractUnsafe {
        @Override
        public void connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) {
            safeSetFailure(promise, new UnsupportedOperationException());
        }
    }
}

Frequently Asked Questions

What is the AbstractServerChannel class?
AbstractServerChannel is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/AbstractServerChannel.java.
Where is AbstractServerChannel defined?
AbstractServerChannel is defined in transport/src/main/java/io/netty/channel/AbstractServerChannel.java at line 31.

Analyze Your Own Codebase

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

Try Supermodel Free