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

This strategy will provide connections that are not shared between CqlConnection, or CqlCommand instances. This makes interference between sequences of queries not possible. This may be of importance when "use" queries are applied. Because of the exclusive use of connections, connections may not be used fully, and the chance that the application will run out of available connections is not unlikely under stress.
Наследование: IConnectionStrategy
Показать файл Открыть проект

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

Метод Описание
ExclusiveConnectionStrategy ( Ring nodes, CqlConnectionStringBuilder config ) : System

Initializes the strategy with the specified nodes and cluster configuration

GetOrCreateConnection ( ConnectionScope scope, PartitionKey partitionKey ) : Connection
ReturnConnection ( Connection connection, ConnectionScope scope ) : void

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

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

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

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

public GetOrCreateConnection ( ConnectionScope scope, PartitionKey partitionKey ) : Connection
scope ConnectionScope
partitionKey PartitionKey
Результат Connection

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

public ReturnConnection ( Connection connection, ConnectionScope scope ) : void
connection Connection
scope ConnectionScope
Результат void