These configuration options should not be set by the user but are documented here for completeness.
CWrandomize_cxnsBy default, the order of cxns passed to set_cxns() is randomized before they are stored. Set randomize_cxns to a false value to disable.
CWcxn_factory()$factory = $cxn_pool->cxn_factory
Returns the current cxn number, which is an offset into the array of cxns set by set_cxns().
CWcxns()\@cxns = $cxn_pool->cxns;
Returns the number of the next connection, in round-robin fashion. Updates the current_cxn_num().
Called when a request by the specified $cxn object has completed successfully. Marks the $cxn as live.
CWrequest_failed()$should_retry = $cxn_pool->request_failed($cxn,$error);
Examines the error to decide whether the request should be retried or not. By default, only Search::Elasticsearch::Error::Cxn in Search::Elasticsearch::Error errors are retried.
CWshould_mark_dead()$bool = $cxn_pool->should_mark_dead($error);
Examines the error to decide whether the $cxn should be marked as dead or not. By default, only Search::Elasticsearch::Error::Cxn in Search::Elasticsearch::Error errors cause a $cxn to be marked as dead.
CWcxns_str()$str = $cxn_pool->cxns_str
Returns all cxns() as a string for logging purposes.
CWcxns_seeds_str()$str = $cxn_pool->cxns_seeeds_str
Returns all cxns() and seed_nodes() as a string for logging purposes.
CWretries()$retries = $cxn_pool->retries
The number of times the current request has been retried.
Called at the start of a new request to reset the retries count.
Clinton Gormley <email@example.com>
This software is Copyright (c) 2015 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
|perl v5.20.3||SEARCH::ELASTICSEARCH::ROLE::CXNPOOL (3)||2015-10-28|