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
파일 보기 프로젝트 열기: reuzel/CqlSharp

공개 메소드들

메소드 설명
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