Class SocketFactory


  • public final class SocketFactory
    extends java.lang.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 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 new SslHandler from provided SslContext.
      io.netty.channel.EventLoopGroup outboundStreamingGroup()  
      void shutdownNow()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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()