Class ClusterManager
Thread-safe cluster manager. Snapshot is swapped with Interlocked.Exchange;
in-flight sessions keep the previous snapshot reference.
Inheritance
ClusterManager
Implements
IClusterManager
Assembly: Titanium.Web.Proxy.dll
Syntax
public sealed class ClusterManager : IClusterManager
Properties
|
Edit this page
View Source
Snapshot
Declaration
public ImmutableClusterSnapshot Snapshot { get; }
Property Value
| Type |
Description |
| ImmutableClusterSnapshot |
|
Methods
|
Edit this page
View Source
ApplyAsync(IReadOnlyList<ClusterConfig>, CancellationToken)
Declaration
public ValueTask ApplyAsync(IReadOnlyList<ClusterConfig> clusters, CancellationToken cancellationToken = default)
Parameters
Returns
|
Edit this page
View Source
GetDestinationState(string)
Declaration
public DestinationState GetDestinationState(string destinationId)
Parameters
| Type |
Name |
Description |
| string |
destinationId |
|
Returns
| Type |
Description |
| DestinationState |
|
|
Edit this page
View Source
SetDestinationState(string, DestinationState)
Declaration
public void SetDestinationState(string destinationId, DestinationState state)
Parameters
| Type |
Name |
Description |
| string |
destinationId |
|
| DestinationState |
state |
|
Implements
Titanium.Web.Proxy.Abstractions.Routing.IClusterManager