Class HttpServerOutboundWay

    • Field Detail

      • messages

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

      • HttpServerOutboundWay

        public HttpServerOutboundWay​(Connection<Server> connection,
                                     int bufferSize)
        Deprecated.
        Constructor.
        Parameters:
        connection - The parent connection.
        bufferSize - The byte buffer size.
    • 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 OutboundWay
      • 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.
      • handle

        public void handle​(Response response)
        Deprecated.
        Description copied from class: OutboundWay
        Add a message to the outbound way.
        Specified by:
        handle in class OutboundWay
      • 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 OutboundWay
        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 ServerOutboundWay
        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 OutboundWay
      • updateState

        public void updateState()
        Deprecated.
        Description copied from class: Way
        Updates the way IO and message states.
        Overrides:
        updateState in class OutboundWay