public class PipelineConfigurator
extends java.lang.Object
Constructor and Description |
---|
PipelineConfigurator(boolean epoll,
boolean keepAlive,
boolean legacyFlusher,
EncryptionOptions.TlsEncryptionPolicy encryptionPolicy) |
Modifier and Type | Method and Description |
---|---|
void |
configureInitialPipeline(io.netty.channel.Channel channel,
Connection.Factory connectionFactory) |
void |
configureLegacyPipeline(io.netty.channel.ChannelHandlerContext ctx,
org.apache.cassandra.transport.ClientResourceLimits.Allocator limits) |
void |
configureModernPipeline(io.netty.channel.ChannelHandlerContext ctx,
org.apache.cassandra.transport.ClientResourceLimits.Allocator resourceAllocator,
ProtocolVersion version,
java.util.Map<java.lang.String,java.lang.String> options) |
protected Dispatcher |
dispatcher(boolean useLegacyFlusher) |
protected org.apache.cassandra.transport.PipelineConfigurator.EncryptionConfig |
encryptionConfig() |
protected FrameDecoder |
frameDecoder(java.lang.String compression,
BufferPoolAllocator allocator) |
protected FrameEncoder |
frameEncoder(java.lang.String compression) |
io.netty.channel.ChannelFuture |
initializeChannel(io.netty.channel.EventLoopGroup workerGroup,
java.net.InetSocketAddress socket,
Connection.Factory connectionFactory) |
protected io.netty.channel.ChannelInitializer<io.netty.channel.Channel> |
initializer(Connection.Factory connectionFactory) |
protected org.apache.cassandra.transport.CQLMessageHandler.MessageConsumer<Message.Request> |
messageConsumer() |
protected org.apache.cassandra.transport.Message.Decoder<Message.Request> |
messageDecoder() |
protected void |
onInitialPipelineReady(io.netty.channel.ChannelPipeline pipeline) |
protected void |
onNegotiationComplete(io.netty.channel.ChannelPipeline pipeline) |
protected org.apache.cassandra.transport.ClientResourceLimits.ResourceProvider |
resourceProvider(org.apache.cassandra.transport.ClientResourceLimits.Allocator allocator) |
public PipelineConfigurator(boolean epoll, boolean keepAlive, boolean legacyFlusher, EncryptionOptions.TlsEncryptionPolicy encryptionPolicy)
public io.netty.channel.ChannelFuture initializeChannel(io.netty.channel.EventLoopGroup workerGroup, java.net.InetSocketAddress socket, Connection.Factory connectionFactory)
protected io.netty.channel.ChannelInitializer<io.netty.channel.Channel> initializer(Connection.Factory connectionFactory)
protected org.apache.cassandra.transport.PipelineConfigurator.EncryptionConfig encryptionConfig()
public void configureInitialPipeline(io.netty.channel.Channel channel, Connection.Factory connectionFactory)
public void configureModernPipeline(io.netty.channel.ChannelHandlerContext ctx, org.apache.cassandra.transport.ClientResourceLimits.Allocator resourceAllocator, ProtocolVersion version, java.util.Map<java.lang.String,java.lang.String> options)
protected void onInitialPipelineReady(io.netty.channel.ChannelPipeline pipeline)
protected void onNegotiationComplete(io.netty.channel.ChannelPipeline pipeline)
protected org.apache.cassandra.transport.ClientResourceLimits.ResourceProvider resourceProvider(org.apache.cassandra.transport.ClientResourceLimits.Allocator allocator)
protected Dispatcher dispatcher(boolean useLegacyFlusher)
protected org.apache.cassandra.transport.CQLMessageHandler.MessageConsumer<Message.Request> messageConsumer()
protected org.apache.cassandra.transport.Message.Decoder<Message.Request> messageDecoder()
protected FrameDecoder frameDecoder(java.lang.String compression, BufferPoolAllocator allocator)
protected FrameEncoder frameEncoder(java.lang.String compression)
public void configureLegacyPipeline(io.netty.channel.ChannelHandlerContext ctx, org.apache.cassandra.transport.ClientResourceLimits.Allocator limits)
Copyright © 2009- The Apache Software Foundation