Package org.jivesoftware.openfire.nio
Interface NettyChannelHandlerFactory
-
public interface NettyChannelHandlerFactoryDefines a factory forChannelHandlerinstances. The instances created by an implementation are directly added to, or removed from, a pipeline.- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddNewHandlerTo(io.netty.channel.ChannelPipeline pipeline)Add a new ChannelHandler to the provided pipeline.voidremoveHandlerFrom(io.netty.channel.ChannelPipeline pipeline)Remove a ChannelHandler from the provided pipeline.
-
-
-
Method Detail
-
addNewHandlerTo
void addNewHandlerTo(io.netty.channel.ChannelPipeline pipeline)
Add a new ChannelHandler to the provided pipeline. It is assumed, but not required, that for each invocation, a new ChannelHandler is created.- Parameters:
pipeline- The pipeline to which a ChannelHandler is to be added.
-
removeHandlerFrom
void removeHandlerFrom(io.netty.channel.ChannelPipeline pipeline)
Remove a ChannelHandler from the provided pipeline. Implementations should ensure that ChannelHandlers added viaaddNewHandlerTo(ChannelPipeline)can be removed again by invocation of this method.- Parameters:
pipeline- The pipeline to which a ChannelHandler is to be added.
-
-