Click or drag to resize

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
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public DseClusterBuilder WithExecutionProfiles(
	Action<IExecutionProfileOptions> profileOptionsBuilder
)

Parameters

profileOptionsBuilder
Type: SystemActionIExecutionProfileOptions

Return Value

Type: DseClusterBuilder
This builder
See Also