lib/execution-profile.js
function ExecutionProfile(name, options) {
  if (typeof name !== 'string') {
    throw new TypeError('Execution profile name must be a string');
  }
  options = options || utils.emptyObject;
  /**
   * Name of the execution profile.
   * @type {String}
   */
  this.name = name;
  /**
   * Consistency level.
   * @type {Number}
   */
  this.consistency = options.consistency;
  /**
   * Load-balancing policy
   * @type {LoadBalancingPolicy}
   */
  this.loadBalancing = options.loadBalancing;
  /**
   * Client read timeout.
   * @type {Number}
   */
  this.readTimeout = options.readTimeout;
  /**
   * Retry policy.
   * @type {RetryPolicy}
   */
  this.retry = options.retry;
  /**
   * Serial consistency level.
   * @type {Number}
   */
  this.serialConsistency = options.serialConsistency;
}
function ExecutionProfile(name, options) {
  if (typeof name !== 'string') {
    throw new TypeError('Execution profile name must be a string');
  }
  options = options || utils.emptyObject;
  /**
   * Name of the execution profile.
   * @type {String}
   */
  this.name = name;
  /**
   * Consistency level.
   * @type {Number}
   */
  this.consistency = options.consistency;
  /**
   * Load-balancing policy
   * @type {LoadBalancingPolicy}
   */
  this.loadBalancing = options.loadBalancing;
  /**
   * Client read timeout.
   * @type {Number}
   */
  this.readTimeout = options.readTimeout;
  /**
   * Retry policy.
   * @type {RetryPolicy}
   */
  this.retry = options.retry;
  /**
   * Serial consistency level.
   * @type {Number}
   */
  this.serialConsistency = options.serialConsistency;
}
Creates a new instance of {@link ExecutionProfile}.
@classdesc
Represents a set configurations to be used in a statement execution to be used for a single {@link Client} instance.
<p>
An {@link ExecutionProfile} instance should not be shared across different {@link Client} instances.
</p>
@param {String} name Name of the execution profile.
<p>
Use <code>'default'</code> to specify that the new instance should be the default {@link ExecutionProfile} if no
profile is specified in the execution.
</p>
@param {Object} [options] Profile options, when any of the options is not specified the {@link Client} will the use
the ones defined in the default profile.
@param {Number} [options.consistency] The consistency level to use for this profile.
@param {LoadBalancingPolicy} [options.loadBalancing] The load-balancing policy to use for this profile.
@param {Number} [options.readTimeout] The client per-host request timeout to use for this profile.
@param {RetryPolicy} [options.retry] The retry policy to use for this profile.
@param {Number} [options.serialConsistency] The serial consistency level to use for this profile.
@constructor