Interface Connection


public interface Connection
  • Field Details

    • CLOSED_EXCEPTION

      static final IOException CLOSED_EXCEPTION
    • SELF_CLOSED_EXCEPTION

      static final IOException SELF_CLOSED_EXCEPTION
  • Method Details

    • context

      io.netty.channel.ChannelHandlerContext context()
    • onAcquire

      void onAcquire()
    • isAvailable

      boolean isAvailable()
    • inFlight

      int inFlight()
    • close

      void close()
      This is an external request to close the connection
    • setClosed

      void setClosed()
      Invoked by the pool when the connection got closed.
    • isOpen

      boolean isOpen()
    • isClosed

      boolean isClosed()
    • host

      String host()