Class SdkEventLoopGroup

    • Method Detail

      • eventLoopGroup

        public io.netty.channel.EventLoopGroup eventLoopGroup()
        Returns:
        the EventLoopGroup to be used with Netty Http client.
      • channelFactory

        public io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory()
        Returns:
        the ChannelFactory to be used with Netty Http Client.
      • datagramChannelFactory

        public io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory()
        Returns:
        the ChannelFactory for datagram channels to be used with Netty Http Client.
      • create

        public static SdkEventLoopGroup create​(io.netty.channel.EventLoopGroup eventLoopGroup,
                                               io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory)
        Creates a new instance of SdkEventLoopGroup with EventLoopGroup and ChannelFactory to be used with NettyNioAsyncHttpClient.
        Parameters:
        eventLoopGroup - the EventLoopGroup to be used
        channelFactory - the channel factor to be used
        Returns:
        a new instance of SdkEventLoopGroup
      • create

        public static SdkEventLoopGroup create​(io.netty.channel.EventLoopGroup eventLoopGroup)
        Creates a new instance of SdkEventLoopGroup with EventLoopGroup.

        ChannelFactory will be resolved based on the type of EventLoopGroup provided. IllegalArgumentException will be thrown for any unknown EventLoopGroup type.

        Parameters:
        eventLoopGroup - the EventLoopGroup to be used
        Returns:
        a new instance of SdkEventLoopGroup