Interface ChannelHandlerFactory

All Superinterfaces:
io.netty.channel.ChannelHandler
All Known Implementing Classes:
DefaultChannelHandlerFactory, ShareableChannelHandlerFactory

public interface ChannelHandlerFactory extends io.netty.channel.ChannelHandler
Factory for creating new ChannelHandler used for non shareable encoders and decoders configured on the Camel NettyComponent.

This is needed as Netty's ChannelHandler is often not shareable and therefore a new instance must be created when a handler is being added to a pipeline.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.channel.ChannelHandler
    Creates a new ChannelHandler to be used.

    Methods inherited from interface io.netty.channel.ChannelHandler

    exceptionCaught, handlerAdded, handlerRemoved
  • Method Details

    • newChannelHandler

      io.netty.channel.ChannelHandler newChannelHandler()
      Creates a new ChannelHandler to be used.