Package org.apache.pulsar.broker.service
Class PulsarChannelInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
- org.apache.pulsar.broker.service.PulsarChannelInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class PulsarChannelInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePulsarChannelInitializer.Factorystatic classPulsarChannelInitializer.PulsarChannelOptions
-
Field Summary
Fields Modifier and Type Field Description static PulsarChannelInitializer.FactoryDEFAULT_FACTORYstatic java.lang.StringTLS_HANDLER
-
Constructor Summary
Constructors Constructor Description PulsarChannelInitializer(PulsarService pulsar, PulsarChannelInitializer.PulsarChannelOptions opts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitChannel(io.netty.channel.socket.SocketChannel ch)protected ServerCnxnewServerCnx(PulsarService pulsar, java.lang.String listenerName)-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Field Detail
-
TLS_HANDLER
public static final java.lang.String TLS_HANDLER
- See Also:
- Constant Field Values
-
DEFAULT_FACTORY
public static final PulsarChannelInitializer.Factory DEFAULT_FACTORY
-
-
Constructor Detail
-
PulsarChannelInitializer
public PulsarChannelInitializer(PulsarService pulsar, PulsarChannelInitializer.PulsarChannelOptions opts) throws java.lang.Exception
- Parameters:
pulsar- An instance ofPulsarServiceopts- Channel options- Throws:
java.lang.Exception
-
-
Method Detail
-
initChannel
protected void initChannel(io.netty.channel.socket.SocketChannel ch) throws java.lang.Exception- Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>- Throws:
java.lang.Exception
-
newServerCnx
protected ServerCnx newServerCnx(PulsarService pulsar, java.lang.String listenerName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-