Class ClientConnector

    • Field Detail

      • CLIENT_CONNECTOR_CONTEXT_KEY

        public static final java.lang.String CLIENT_CONNECTOR_CONTEXT_KEY
        See Also:
        Constant Field Values
      • REMOTE_SOCKET_ADDRESS_CONTEXT_KEY

        public static final java.lang.String REMOTE_SOCKET_ADDRESS_CONTEXT_KEY
        See Also:
        Constant Field Values
      • CLIENT_CONNECTION_FACTORY_CONTEXT_KEY

        public static final java.lang.String CLIENT_CONNECTION_FACTORY_CONTEXT_KEY
        See Also:
        Constant Field Values
      • CONNECTION_PROMISE_CONTEXT_KEY

        public static final java.lang.String CONNECTION_PROMISE_CONTEXT_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • ClientConnector

        public ClientConnector()
    • Method Detail

      • getExecutor

        public java.util.concurrent.Executor getExecutor()
      • setExecutor

        public void setExecutor​(java.util.concurrent.Executor executor)
      • getScheduler

        public Scheduler getScheduler()
      • setScheduler

        public void setScheduler​(Scheduler scheduler)
      • setByteBufferPool

        public void setByteBufferPool​(ByteBufferPool byteBufferPool)
      • getSelectors

        public int getSelectors()
      • setSelectors

        public void setSelectors​(int selectors)
      • isConnectBlocking

        public boolean isConnectBlocking()
      • setConnectBlocking

        public void setConnectBlocking​(boolean connectBlocking)
      • getConnectTimeout

        public java.time.Duration getConnectTimeout()
      • setConnectTimeout

        public void setConnectTimeout​(java.time.Duration connectTimeout)
      • getIdleTimeout

        public java.time.Duration getIdleTimeout()
      • setIdleTimeout

        public void setIdleTimeout​(java.time.Duration idleTimeout)
      • getBindAddress

        public java.net.SocketAddress getBindAddress()
      • setBindAddress

        public void setBindAddress​(java.net.SocketAddress bindAddress)
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Starts the managed lifecycle beans in the order they were added.
        Overrides:
        doStart in class ContainerLifeCycle
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Stops the managed lifecycle beans in the reverse order they were added.
        Overrides:
        doStop in class ContainerLifeCycle
        Throws:
        java.lang.Exception - If there was a problem stopping. Will cause a transition to FAILED state
      • connect

        public void connect​(java.net.SocketAddress address,
                            java.util.Map<java.lang.String,​java.lang.Object> context)
      • accept

        public void accept​(java.nio.channels.SocketChannel channel,
                           java.util.Map<java.lang.String,​java.lang.Object> context)
      • safeClose

        protected void safeClose​(java.io.Closeable closeable)
      • configure

        protected void configure​(java.nio.channels.SocketChannel channel)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • connectFailed

        protected void connectFailed​(java.lang.Throwable failure,
                                     java.util.Map<java.lang.String,​java.lang.Object> context)