Class ConnectionManager

java.lang.Object
io.micronaut.http.client.netty.ConnectionManager

@Internal public class ConnectionManager extends Object
Connection manager for DefaultHttpClient. This class manages the lifecycle of netty channels (wrapped in ConnectionManager.PoolHandles), including pooling and timeouts.
Note: This class is public for use in micronaut-oracle-cloud.
  • Method Details

    • alloc

      public final io.netty.buffer.ByteBufAllocator alloc()
      Allocator for this connection manager. Used by micronaut-oracle-cloud.
      Returns:
      The configured allocator
    • start

      public final void start()
      See Also:
    • shutdown

      public final void shutdown()
      See Also:
    • isRunning

      public final boolean isRunning()
      Returns:
      Whether this connection manager is still running and can serve requests
      See Also:
    • connect

      Get a connection for non-websocket http client methods.
      Parameters:
      requestKey - The remote to connect to
      blockHint - Optional information about what threads are blocked for this connection request
      Returns:
      A mono that will complete once the channel is ready for transmission