ChannelPipeline Type — netty Architecture
Architecture documentation for the ChannelPipeline type/interface in ChannelPipeline.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 84c53cb8_3f48_8601_a6d8_386106bfd70b["ChannelPipeline"] adaec4f3_8869_7912_9cee_c0ec50e261dc["ChannelPipeline.java"] 84c53cb8_3f48_8601_a6d8_386106bfd70b -->|defined in| adaec4f3_8869_7912_9cee_c0ec50e261dc style 84c53cb8_3f48_8601_a6d8_386106bfd70b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/ChannelPipeline.java lines 208–643
public interface ChannelPipeline
extends ChannelInboundInvoker, ChannelOutboundInvoker, Iterable<Entry<String, ChannelHandler>> {
/**
* Inserts a {@link ChannelHandler} at the first position of this pipeline.
*
* @param name the name of the handler to insert first
* @param handler the handler to insert first
*
* @throws IllegalArgumentException
* if there's an entry with the same name already in the pipeline
* @throws NullPointerException
* if the specified handler is {@code null}
*/
ChannelPipeline addFirst(String name, ChannelHandler handler);
/**
* Inserts a {@link ChannelHandler} at the first position of this pipeline.
*
* @param group the {@link EventExecutorGroup} which will be used to execute the {@link ChannelHandler}
* methods
* @param name the name of the handler to insert first
* @param handler the handler to insert first
*
* @throws IllegalArgumentException
* if there's an entry with the same name already in the pipeline
* @throws NullPointerException
* if the specified handler is {@code null}
* @deprecated use {@link #addFirst(String, ChannelHandler)}
*/
@Deprecated
ChannelPipeline addFirst(EventExecutorGroup group, String name, ChannelHandler handler);
/**
* Appends a {@link ChannelHandler} at the last position of this pipeline.
*
* @param name the name of the handler to append
* @param handler the handler to append
*
* @throws IllegalArgumentException
* if there's an entry with the same name already in the pipeline
* @throws NullPointerException
* if the specified handler is {@code null}
*/
ChannelPipeline addLast(String name, ChannelHandler handler);
/**
* Appends a {@link ChannelHandler} at the last position of this pipeline.
*
* @param group the {@link EventExecutorGroup} which will be used to execute the {@link ChannelHandler}
* methods
* @param name the name of the handler to append
* @param handler the handler to append
*
* @throws IllegalArgumentException
* if there's an entry with the same name already in the pipeline
* @throws NullPointerException
* if the specified handler is {@code null}
* @deprecated use {@link #addLast(String, ChannelHandler)}
*/
@Deprecated
ChannelPipeline addLast(EventExecutorGroup group, String name, ChannelHandler handler);
/**
* Inserts a {@link ChannelHandler} before an existing handler of this
* pipeline.
*
* @param baseName the name of the existing handler
* @param name the name of the handler to insert before
* @param handler the handler to insert before
*
* @throws NoSuchElementException
* if there's no such entry with the specified {@code baseName}
* @throws IllegalArgumentException
* if there's an entry with the same name already in the pipeline
* @throws NullPointerException
* if the specified baseName or handler is {@code null}
*/
ChannelPipeline addBefore(String baseName, String name, ChannelHandler handler);
/**
Source
Frequently Asked Questions
What is the ChannelPipeline type?
ChannelPipeline is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelPipeline.java.
Where is ChannelPipeline defined?
ChannelPipeline is defined in transport/src/main/java/io/netty/channel/ChannelPipeline.java at line 208.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free