Home / Type/ ChannelPoolHandler Type — netty Architecture

ChannelPoolHandler Type — netty Architecture

Architecture documentation for the ChannelPoolHandler type/interface in ChannelPoolHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  83220e83_15c6_6453_8d44_e08f3e2a0b64["ChannelPoolHandler"]
  77892eb7_b421_782d_c0b6_bac3add8a511["ChannelPoolHandler.java"]
  83220e83_15c6_6453_8d44_e08f3e2a0b64 -->|defined in| 77892eb7_b421_782d_c0b6_bac3add8a511
  style 83220e83_15c6_6453_8d44_e08f3e2a0b64 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/pool/ChannelPoolHandler.java lines 25–48

public interface ChannelPoolHandler {
    /**
     * Called once a {@link Channel} was released by calling {@link ChannelPool#release(Channel)} or
     * {@link ChannelPool#release(Channel, Promise)}.
     *
     * This method will be called by the {@link EventLoop} of the {@link Channel}.
     */
    void channelReleased(Channel ch) throws Exception;

    /**
     * Called once a {@link Channel} was acquired by calling {@link ChannelPool#acquire()} or
     * {@link ChannelPool#acquire(Promise)}.
     *
     * This method will be called by the {@link EventLoop} of the {@link Channel}.
     */
    void channelAcquired(Channel ch) throws Exception;

    /**
     * Called once a new {@link Channel} is created in the {@link ChannelPool}.
     *
     * This method will be called by the {@link EventLoop} of the {@link Channel}.
     */
    void channelCreated(Channel ch) throws Exception;
}

Frequently Asked Questions

What is the ChannelPoolHandler type?
ChannelPoolHandler is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/pool/ChannelPoolHandler.java.
Where is ChannelPoolHandler defined?
ChannelPoolHandler is defined in transport/src/main/java/io/netty/channel/pool/ChannelPoolHandler.java at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free