Interface Connection

    • Method Detail

      • send

        void send​(Request request,
                  Response.CompleteListener listener)
        Sends a request with an associated response listener.

        Request.send(Response.CompleteListener) will eventually call this method to send the request. It is exposed to allow applications to send requests via unpooled connections.

        Parameters:
        request - the request to send
        listener - the response listener
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • isClosed

        boolean isClosed()
        Returns:
        whether this connection has been closed
        See Also:
        close()