DseClusterBuilderWithExecutionProfiles Method |
Adds Execution Profiles to the DseCluster instance.
Execution profiles are like configuration presets, multiple methods of the driver accept an execution profile name which is like telling the driver which settings to use for that particular request. This makes it easier to change settings like ConsistencyLevel and ReadTimeoutMillis on a per request basis.
Note that subsequent calls to this method will override the previously provided profiles.
To add execution profiles you can use WithProfile(String, ActionIExecutionProfileBuilder):
DseCluster.Builder() .WithExecutionProfiles(options => options .WithProfile("profile1", profileBuilder => profileBuilder .WithReadTimeoutMillis(10000) .WithConsistencyLevel(ConsistencyLevel.LocalQuorum)) .WithProfile("profile-graph", profileBuilder => profileBuilder .WithReadTimeoutMillis(10000) .WithGraphOptions(new GraphOptions().SetName("name")))) .Build();
Namespace: Dse
public DseClusterBuilder WithExecutionProfiles( Action<IExecutionProfileOptions> profileOptionsBuilder )