Class SocketConnectionFactoryImpl

    • Constructor Detail

      • SocketConnectionFactoryImpl

        public SocketConnectionFactoryImpl​(ClientConfig clientConfig)
      • SocketConnectionFactoryImpl

        public SocketConnectionFactoryImpl​(ClientConfig clientConfig,
                                           java.lang.Integer numThreadsInPool)
      • SocketConnectionFactoryImpl

        public SocketConnectionFactoryImpl​(ClientConfig clientConfig,
                                           java.util.concurrent.ScheduledExecutorService executor)
    • Method Detail

      • establishConnection

        public java.util.concurrent.CompletableFuture<ClientConnection> establishConnection​(io.pravega.shared.protocol.netty.PravegaNodeUri endpoint,
                                                                                            io.pravega.shared.protocol.netty.ReplyProcessor rp)
        Description copied from interface: ConnectionFactory
        Establishes a connection between server and client with given parameters.
        Specified by:
        establishConnection in interface ConnectionFactory
        Parameters:
        endpoint - The Pravega Node URI.
        rp - Reply Processor instance.
        Returns:
        An instance of client connection.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface ConnectionFactory
      • getOpenSocketCount

        public int getOpenSocketCount()
      • getInternalExecutor

        public java.util.concurrent.ScheduledExecutorService getInternalExecutor()
        Description copied from interface: ConnectionFactory
        Returns the client-internal thread pool for background tasks.
        Specified by:
        getInternalExecutor in interface ConnectionFactory