Class NettyStreamFactory

  • All Implemented Interfaces:
    StreamFactory

    @Deprecated(since="2021-05-27")
    public class NettyStreamFactory
    extends Object
    implements StreamFactory
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A StreamFactory for Streams based on Netty 4.x.
    Since:
    3.0
    • Constructor Detail

      • NettyStreamFactory

        public NettyStreamFactory​(SocketSettings settings,
                                  SslSettings sslSettings,
                                  io.netty.channel.EventLoopGroup eventLoopGroup,
                                  Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass,
                                  io.netty.buffer.ByteBufAllocator allocator)
        Deprecated.
        Construct a new instance of the factory.
        Parameters:
        settings - the socket settings
        sslSettings - the SSL settings
        eventLoopGroup - the event loop group that all channels created by this factory will be a part of
        socketChannelClass - the socket channel class
        allocator - the allocator to use for ByteBuf instances
        Since:
        3.3
      • NettyStreamFactory

        public NettyStreamFactory​(SocketSettings settings,
                                  SslSettings sslSettings,
                                  io.netty.channel.EventLoopGroup eventLoopGroup,
                                  io.netty.buffer.ByteBufAllocator allocator)
        Deprecated.
        Construct a new instance of the factory.
        Parameters:
        settings - the socket settings
        sslSettings - the SSL settings
        eventLoopGroup - the event loop group that all channels created by this factory will be a part of
        allocator - the allocator to use for ByteBuf instances
      • NettyStreamFactory

        public NettyStreamFactory​(SocketSettings settings,
                                  SslSettings sslSettings,
                                  io.netty.channel.EventLoopGroup eventLoopGroup)
        Deprecated.
        Construct a new instance of the factory.
        Parameters:
        settings - the socket settings
        sslSettings - the SSL settings
        eventLoopGroup - the event loop group that all channels created by this factory will be a part of
        Since:
        3.4
      • NettyStreamFactory

        public NettyStreamFactory​(SocketSettings settings,
                                  SslSettings sslSettings)
        Deprecated.
        Construct a new instance of the factory with a default allocator, nio event loop group and nio socket channel.
        Parameters:
        settings - the socket settings
        sslSettings - the SSL settings
    • Method Detail

      • create

        public Stream create​(ServerAddress serverAddress)
        Deprecated.
        Description copied from interface: StreamFactory
        Create a Stream to the given address
        Specified by:
        create in interface StreamFactory
        Parameters:
        serverAddress - the address
        Returns:
        the stream