Class H2ConnectionPool
public class H2ConnectionPool : IHttpConnectionPool, IAsyncDisposable
- Inheritance
-
H2ConnectionPool
- Implements
- Inherited Members
Constructors
H2ConnectionPool(Stream, H2StreamSetting, Authority, Connection, Action<H2ConnectionPool>, ILogger?)
public H2ConnectionPool(Stream baseStream, H2StreamSetting setting, Authority authority, Connection connection, Action<H2ConnectionPool> onConnectionFaulted, ILogger? logger = null)
Parameters
baseStreamStreamsettingH2StreamSettingauthorityAuthorityconnectionConnectiononConnectionFaultedAction<H2ConnectionPool>loggerILogger
Fields
IsDisposed
public volatile bool IsDisposed
Field Value
TotalRequest
public volatile int TotalRequest
Field Value
Properties
Authority
public Authority Authority { get; }
Property Value
Complete
True once the pool is no longer accepting new exchanges — either because the connection has terminated (Fluxzy.Clients.H2.H2ConnectionPool._complete) or the remote sent GOAWAY and the pool is draining in-flight streams (Fluxzy.Clients.H2.StreamPool.IsDraining). Fluxzy.Clients.PoolBuilder uses this to route future exchanges to a fresh pool while existing in-flight streams continue to completion on this pool.
public bool Complete { get; }
Property Value
Id
public int Id { get; }
Property Value
Setting
public H2StreamSetting Setting { get; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
Init()
public void Init()
Send(Exchange, IDownStreamPipe, RsBuffer, ExchangeScope, CancellationToken)
public ValueTask Send(Exchange exchange, IDownStreamPipe _, RsBuffer buffer, ExchangeScope __, CancellationToken cancellationToken = default)
Parameters
exchangeExchange_IDownStreamPipebufferRsBuffer__ExchangeScopecancellationTokenCancellationToken