# ExecutionProfile

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>ExecutionProfile<span class="signature">(name, options)</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Represents a set configurations to be used in a statement execution to be used for a single <a href="Client.html">Client</a> instance.</p>
<p>An <a href="ExecutionProfile.html">ExecutionProfile</a> instance should not be shared across different <a href="Client.html">Client</a> instances.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="ExecutionProfile"><span class="type-signature"></span>new ExecutionProfile<span class="signature">(name, options)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>name</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>Name of the execution profile.
Use <code>'default'</code> to specify that the new instance should be the default <a href="ExecutionProfile.html">ExecutionProfile</a> if no
profile is specified in the execution.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>options</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>Profile options, when any of the options is not specified the <a href="Client.html">Client</a> will the use
the ones defined in the default profile. See <a href="globals.html#ClientOptions">ClientOptions</a> for more details.</p></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/execution-profile.js#L22" target="_blank" rel="noopener">execution-profile.js, line 22</a></p></div>



















    <h5>Example</h5>
    
    <div class="highlight-javascript notranslate"><div class="highlight"><pre>const { Client, ExecutionProfile } = require('cassandra-driver');
const client = new Client({
  contactPoints: ['host1', 'host2'],
  profiles: [
    new ExecutionProfile('metrics-oltp', {
      consistency: consistency.localQuorum,
      retry: myRetryPolicy
    })
  ]
});

client.execute(query, params, { executionProfile: 'metrics-oltp' }, callback);</pre></div></div>



    
    

    

    

    

    

    

    

    
        </div>

## Members

<div class="jsdoc-content">

        
            
<h4 class="name" id="consistency"><span class="type-signature"></span>consistency<span class="type-signature"></span></h4>




<div class="description">
    <p>Consistency level.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/execution-profile.js#L26" target="_blank" rel="noopener">execution-profile.js, line 26</a></p></div>






        
            
<h4 class="name" id="loadBalancing"><span class="type-signature"></span>loadBalancing<span class="type-signature"></span></h4>




<div class="description">
    <p>Load-balancing policy.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/execution-profile.js#L28" target="_blank" rel="noopener">execution-profile.js, line 28</a></p></div>






        
            
<h4 class="name" id="name"><span class="type-signature"></span>name<span class="type-signature"></span></h4>




<div class="description">
    <p>Name of the execution profile.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/execution-profile.js#L24" target="_blank" rel="noopener">execution-profile.js, line 24</a></p></div>






        
            
<h4 class="name" id="readTimeout"><span class="type-signature"></span>readTimeout<span class="type-signature"></span></h4>




<div class="description">
    <p>Client read timeout.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/execution-profile.js#L30" target="_blank" rel="noopener">execution-profile.js, line 30</a></p></div>






        
            
<h4 class="name" id="retry"><span class="type-signature"></span>retry<span class="type-signature"></span></h4>




<div class="description">
    <p>Retry policy.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/execution-profile.js#L32" target="_blank" rel="noopener">execution-profile.js, line 32</a></p></div>






        
            
<h4 class="name" id="serialConsistency"><span class="type-signature"></span>serialConsistency<span class="type-signature"></span></h4>




<div class="description">
    <p>Serial consistency level.</p>
</div>







<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/execution-profile.js#L34" target="_blank" rel="noopener">execution-profile.js, line 34</a></p></div></div>
