Class SocketFactory

java.lang.Object
org.apache.cassandra.net.SocketFactory

public final class SocketFactory extends Object
A factory for building Netty Channels. Channels here are setup with a pipeline to participate in the internode protocol handshake, either the inbound or outbound side as per the method invoked.
  • Method Details

    • newSslHandler

      public static io.netty.handler.ssl.SslHandler newSslHandler(io.netty.channel.Channel channel, io.netty.handler.ssl.SslContext sslContext, @Nullable InetSocketAddress peer)
      Creates a new SslHandler from provided SslContext.
      Parameters:
      peer - enables endpoint verification for remote address when not null
    • outboundStreamingGroup

      public io.netty.channel.EventLoopGroup outboundStreamingGroup()
    • shutdownNow

      public void shutdownNow()