Package org.jivesoftware.openfire.nio
Interface NettyChannelHandlerFactory
public interface NettyChannelHandlerFactory
Defines a factory for
ChannelHandler
instances. The instances created by an implementation
are directly added to, or removed from, a pipeline.- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewHandlerTo
(io.netty.channel.ChannelPipeline pipeline) Add a new ChannelHandler to the provided pipeline.void
removeHandlerFrom
(io.netty.channel.ChannelPipeline pipeline) Remove a ChannelHandler from the provided pipeline.
-
Method Details
-
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.
-