All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Fields | Related Functions
as_policy_read Struct Reference

Detailed Description

Read Policy

Definition at line 377 of file as_policy.h.

#include "as_policy.h"

+ Collaboration diagram for as_policy_read:

Data Fields

as_policy_consistency_level consistency_level
 
bool deserialize
 
as_policy_key key
 
as_policy_replica replica
 
uint32_t retry
 
uint32_t timeout
 

Related Functions

(Note that these are not member functions.)

static void as_policy_read_copy (as_policy_read *src, as_policy_read *trg)
 
static as_policy_readas_policy_read_init (as_policy_read *p)
 

Friends And Related Function Documentation

static void as_policy_read_copy ( as_policy_read src,
as_policy_read trg 
)
related

Copy as_policy_read values.

Parameters
srcThe source policy.
trgThe target policy.

Definition at line 883 of file as_policy.h.

References consistency_level, deserialize, key, replica, retry, and timeout.

static as_policy_read * as_policy_read_init ( as_policy_read p)
related

Initialize as_policy_read to default values.

Parameters
pThe policy to initialize.
Returns
The initialized policy.

Definition at line 863 of file as_policy.h.

References AS_POLICY_CONSISTENCY_LEVEL_DEFAULT, AS_POLICY_KEY_DEFAULT, AS_POLICY_REPLICA_DEFAULT, AS_POLICY_RETRY_DEFAULT, AS_POLICY_TIMEOUT_DEFAULT, consistency_level, deserialize, key, replica, retry, and timeout.

Field Documentation

as_policy_consistency_level as_policy_read::consistency_level

Specifies the number of replicas consulted when reading for the desired consistency guarantee.

Definition at line 404 of file as_policy.h.

bool as_policy_read::deserialize

Should raw bytes representing a list or map be deserialized to as_list or as_map. Set to false for backup programs that just need access to raw bytes. Default: true

Definition at line 411 of file as_policy.h.

as_policy_key as_policy_read::key

Specifies the behavior for the key.

Definition at line 393 of file as_policy.h.

as_policy_replica as_policy_read::replica

Specifies the replica to be consulted for the read.

Definition at line 398 of file as_policy.h.

uint32_t as_policy_read::retry

Maximum number of retries when a transaction fails due to a network error.

Definition at line 388 of file as_policy.h.

uint32_t as_policy_read::timeout

Maximum time in milliseconds to wait for the operation to complete.

Definition at line 383 of file as_policy.h.


The documentation for this struct was generated from the following file: