C# Class 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.
Inheritance: IConnectionStrategy
Afficher le fichier Open project: reuzel/CqlSharp

Méthodes publiques

Méthode Description
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

Method Details

ExclusiveConnectionStrategy() public méthode

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.
Résultat System

GetOrCreateConnection() public méthode

public GetOrCreateConnection ( ConnectionScope scope, PartitionKey partitionKey ) : Connection
scope ConnectionScope
partitionKey PartitionKey
Résultat Connection

ReturnConnection() public méthode

public ReturnConnection ( Connection connection, ConnectionScope scope ) : void
connection Connection
scope ConnectionScope
Résultat void