Class HttpServerInboundWay

    • Field Detail

      • messages

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

      • HttpServerInboundWay

        public HttpServerInboundWay​(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 InboundWay
      • createResponse

        protected Response createResponse​(Request request)
        Deprecated.
        Description copied from class: ServerInboundWay
        Creates a response object for the given request.
        Specified by:
        createResponse in class ServerInboundWay
        Parameters:
        request - The parent request.
        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 ServerInboundWay
        Returns:
        True if we want to be selected for IO processing when the socket is ready.
      • isAvailable

        public boolean isAvailable()
        Deprecated.
        Description copied from class: Way
        Indicates if the way is available to handle new messages.
        Overrides:
        isAvailable in class Way
        Returns:
        True if the way is available to handle new messages.
      • 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.
      • onReceived

        protected void onReceived​(Response message)
                           throws java.io.IOException
        Deprecated.
        Description copied from class: ServerInboundWay
        Call back invoked when the message is received.
        Overrides:
        onReceived in class ServerInboundWay
        Parameters:
        message - The new message received.
        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