Package org.apache.cassandra.net
Class SocketFactory
- java.lang.Object
-
- org.apache.cassandra.net.SocketFactory
-
public final class SocketFactory extends java.lang.Object
A factory for building NettyChannel
s. 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static io.netty.handler.ssl.SslHandler
newSslHandler(io.netty.channel.Channel channel, io.netty.handler.ssl.SslContext sslContext, java.net.InetSocketAddress peer)
Creates a newSslHandler
from provided SslContext.io.netty.channel.EventLoopGroup
outboundStreamingGroup()
void
shutdownNow()
-
-
-
Method Detail
-
newSslHandler
public static io.netty.handler.ssl.SslHandler newSslHandler(io.netty.channel.Channel channel, io.netty.handler.ssl.SslContext sslContext, @Nullable java.net.InetSocketAddress peer)
Creates a newSslHandler
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()
-
-