Method | Description | |
---|---|---|
GetOrCreateConnection ( ConnectionScope scope, PartitionKey partitionKey ) : |
Gets or creates connection to the cluster.
|
|
RandomConnectionStrategy ( Ring nodes, CqlConnectionStringBuilder config ) : System |
Initializes the strategies with the specified nodes and cluster configuration
|
|
ReturnConnection ( |
Invoked when a connection is no longer in use by the application
|
public GetOrCreateConnection ( ConnectionScope scope, PartitionKey partitionKey ) : |
||
scope | ConnectionScope | The scope. |
partitionKey | PartitionKey | The partition key. |
return |
public RandomConnectionStrategy ( Ring nodes, CqlConnectionStringBuilder config ) : System | ||
nodes | Ring | The nodes. |
config | CqlConnectionStringBuilder | The config. |
return | System |
public ReturnConnection ( |
||
connection | The connection no longer used. | |
scope | ConnectionScope | The scope. |
return | void |