ZooKeeperGatewayListProvider
class
Namespace: Orleans.Runtime.Membership
Provides Orleans gateway addresses from ZooKeeper cluster membership.
public class ZooKeeperGatewayListProvider : IGatewayListProviderConstructors
Properties
IsUpdatableSpecifies whether this IGatewayListProvider ever refreshes its returned information, or always returns the same gw list. (currently only the static config based StaticGatewayListProvider is not updatable. All others are.)MaxStalenessSpecifies how often this IGatewayListProvider is refreshed, to have a bound on max staleness of its returned information.
Methods
GetGatewaysReturns the list of gateways (silos) that can be used by a client to connect to Orleans cluster. The Uri is in the form of: "gwy.tcp://IP:port/Generation". See Utils.ToGatewayUri and Utils.ToSiloAddress for more details about Uri format.GetGatewaysAsync(CancellationToken)Gets the gateway endpoints which clients can use to connect to the cluster.InitializeGatewayListProviderInitializes the ZooKeeper based gateway providerInitializeGatewayListProviderAsync(CancellationToken)Initializes the provider before gateway discovery begins.
