Represents a set configurations to be used in a statement execution to be used for a single Client instance.

An ExecutionProfile instance should not be shared across different Client instances.

Global
This class is global

Members

Number

consistency

Consistency level.

LoadBalancingPolicy

loadBalancing

Load-balancing policy

String

name

Name of the execution profile.

Number

readTimeout

Client read timeout.

RetryPolicy

retry

Retry policy.

Number

serialConsistency

Serial consistency level.

Constructor

new

ExecutionProfile

(String name, [Object options])

Creates a new instance of ExecutionProfile.

Parameters:
Name Type Description
name String

Name of the execution profile.

Use 'default' to specify that the new instance should be the default ExecutionProfile if no profile is specified in the execution.

options optional Object

Profile options, when any of the options is not specified the Client will the use the ones defined in the default profile.

options.consistency optional Number

The consistency level to use for this profile.

options.loadBalancing optional LoadBalancingPolicy

The load-balancing policy to use for this profile.

options.readTimeout optional Number

The client per-host request timeout to use for this profile.

options.retry optional RetryPolicy

The retry policy to use for this profile.

options.serialConsistency optional Number

The serial consistency level to use for this profile.