public class DefaultChannelPipeline extends Object
| 构造器和说明 |
|---|
DefaultChannelPipeline(SocketChannel socketChannel) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFirst(ChannelHandlerAdapter channelHandlerAdapter)
添加到第一位
|
void |
addLast(ChannelHandlerAdapter channelHandlerAdapter)
添加到最后一位
|
void |
clean()
清理责任链
|
FastCopyOnWriteArrayList<ChannelHandlerAdapter> |
getInPipeList()
获取入栈责任链
|
FastCopyOnWriteArrayList<ChannelHandlerAdapter> |
getOutPipeList()
获取出栈责任链
|
ChannelHandlerAdapter |
inPipeFirst()
获取第一个入栈处理器
|
ChannelHandlerAdapter |
nextInPipe(ChannelHandlerAdapter channelHandlerAdapter)
获取下一个入栈处理器
|
ChannelHandlerAdapter |
nextOutPipe(ChannelHandlerAdapter channelHandlerAdapter)
获取下一个出栈处理器
|
ChannelHandlerAdapter |
outPipeFirst()
获取第一个出栈处理器
|
public DefaultChannelPipeline(SocketChannel socketChannel)
public FastCopyOnWriteArrayList<ChannelHandlerAdapter> getInPipeList()
public FastCopyOnWriteArrayList<ChannelHandlerAdapter> getOutPipeList()
public ChannelHandlerAdapter inPipeFirst()
public ChannelHandlerAdapter outPipeFirst()
public ChannelHandlerAdapter nextInPipe(ChannelHandlerAdapter channelHandlerAdapter)
channelHandlerAdapter - 当前处理器public ChannelHandlerAdapter nextOutPipe(ChannelHandlerAdapter channelHandlerAdapter)
channelHandlerAdapter - 当前处理器public void addLast(ChannelHandlerAdapter channelHandlerAdapter)
channelHandlerAdapter - 当前处理器public void addFirst(ChannelHandlerAdapter channelHandlerAdapter)
channelHandlerAdapter - 当前处理器public void clean()
Copyright © 2021. All rights reserved.