Name

lcb_behavior_get_config_errors_threshold — Get the threshold values for configuration errors

Synopsis

cc [ flag … ] file… -lcouchbase [ library … ]

#include <libcouchbase/couchbase.h>
lcb_size_t lcb_behavior_get_config_errors_threshold(lcb_t instance);
void lcb_behavior_set_config_errors_threshold(lcb_t instance,
                                              lcb_size_t num_events);

DESCRIPTION

This interface deprecated and will be removed in libcouchbase 3.x in favour lcb_cntl(3couchbase). Consider this replacement:

1) for lcb_behavior_get_config_errors_threshold(instance):

lcb_size_t num_events;
lcb_cntl(LCB_CNTL_GET, instance, LCB_CNTL_CONFERRTHRESH, &num_events);

2) for lcb_behavior_set_config_errors_threshold(instance, num_events):

lcb_cntl(LCB_CNTL_SET, instance, LCB_CNTL_CONFERRTHRESH, &num_events);

lcb_behavior_get_config_errors_threshold() returns the number of errors we may receive from the node currently connected to before considering the configuration stream on the same host to be gone and force a reconnect.

lcb_behavior_set_config_errors_threshold() specifies a new threshold value for the given instance.

RETURN VALUES

lcb_behavior_get_config_errors_threshold() returns current threshold value.

ATTRIBUTES

See lcb_attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE

Interface Stability

Committed

MT-Level

MT-Safe

COPYRIGHT

Copyright 2010-2013 Couchbase, Inc.

SEE ALSO

Learn more at http://www.couchbase.com/communities/c.

libcouchbase(3lib), lcb_create(3couchbase), lcb_wait(3couchbase), lcb_attributes(5), lcb_cntl(3couchbase)