Class HttpClientInboundWay

    • Field Detail

      • messages

        private final java.util.Queue<Response> messages
        Deprecated.
        The queue of messages.
    • Constructor Detail

      • HttpClientInboundWay

        public HttpClientInboundWay​(Connection<Client> connection,
                                    int bufferSize)
        Deprecated.
        Constructor.
        Parameters:
        connection - The parent connection.
        bufferSize - The byte buffer size.
        Throws:
        java.io.IOException
    • Method Detail

      • clear

        public void clear()
        Deprecated.
        Description copied from class: Way
        Recycles the way so it can be reused. Typically invoked by a connection pool.
        Overrides:
        clear in class InboundWay
      • createResponse

        protected Response createResponse​(Status status)
        Deprecated.
        Description copied from class: ClientInboundWay
        Creates a response object for the given status.
        Specified by:
        createResponse in class ClientInboundWay
        Parameters:
        status - The response status.
        Returns:
        The new response object.
      • getLoadScore

        public int getLoadScore()
        Deprecated.
        Description copied from class: Way
        Returns a score representing the way load and that could be compared with other ways of the same parent connection.
        Overrides:
        getLoadScore in class Way
        Returns:
        A score representing the way load.
      • getMessages

        public java.util.Queue<Response> getMessages()
        Deprecated.
        Returns the queue of messages.
        Returns:
        The queue of messages.
      • hasIoInterest

        protected boolean hasIoInterest()
        Deprecated.
        Description copied from class: Way
        Indicates if we want to be selected for IO processing when the socket related socket is prepared.
        Overrides:
        hasIoInterest in class Way
        Returns:
        True if we want to be selected for IO processing when the socket is ready.
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Description copied from class: Way
        Indicates if the way is empty.
        Overrides:
        isEmpty in class Way
        Returns:
        True if the way is empty.
      • onError

        public void onError​(Status status)
        Deprecated.
        Description copied from class: Way
        Called on error.
        Overrides:
        onError in class InboundWay
        Parameters:
        status - The error status.
      • onMessageCompleted

        public void onMessageCompleted​(boolean endDetected)
                                throws java.io.IOException
        Deprecated.
        Description copied from class: Way
        Callback method invoked when the current message has been completely received or sent.
        Specified by:
        onMessageCompleted in interface CompletionListener
        Overrides:
        onMessageCompleted in class ClientInboundWay
        Parameters:
        endDetected - Indicates if the end of the socket channel was detected.
        Throws:
        java.io.IOException
      • onTimeOut

        public void onTimeOut()
        Deprecated.
        Description copied from class: Way
        Called back by the controller when an IO time out has been detected.
        Overrides:
        onTimeOut in class InboundWay