C# Класс CqlSharp.Network.PartitionAwareConnectionStrategy

Наследование: IConnectionStrategy
Показать файл Открыть проект

Открытые методы

Метод Описание
GetOrCreateConnection ( ConnectionScope scope, PartitionKey partitionKey ) : Connection

Gets or creates connection to the cluster.

PartitionAwareConnectionStrategy ( Ring nodes, CqlConnectionStringBuilder config ) : System.Linq

Initializes the strategy with the specified nodes and cluster configuration

ReturnConnection ( Connection connection, ConnectionScope scope ) : void

Invoked when a connection is no longer in use by the application

Описание методов

GetOrCreateConnection() публичный Метод

Gets or creates connection to the cluster.
/// Can not connect to any node of the cluster! All connectivity to the cluster seems to be /// lost ///
public GetOrCreateConnection ( ConnectionScope scope, PartitionKey partitionKey ) : Connection
scope ConnectionScope The scope.
partitionKey PartitionKey The partition key.
Результат Connection

PartitionAwareConnectionStrategy() публичный Метод

Initializes the strategy with the specified nodes and cluster configuration
public PartitionAwareConnectionStrategy ( Ring nodes, CqlConnectionStringBuilder config ) : System.Linq
nodes Ring The nodes.
config CqlConnectionStringBuilder The config.
Результат System.Linq

ReturnConnection() публичный Метод

Invoked when a connection is no longer in use by the application
public ReturnConnection ( Connection connection, ConnectionScope scope ) : void
connection Connection The connection no longer used.
scope ConnectionScope The scope.
Результат void