Search::Elasticsearch::Role::Cxn::Async - Provides common functionality to async Cxn implementations
version 8.00
Search::Elasticsearch::Role::Cxn::Async provides common functionality to the async Cxn implementations. Cxn instances are created by a Search::Elasticsearch::Role::CxnPool implementation, using the Search::Elasticsearch::Cxn::Factory class.
See Search::Elasticsearch::Role::Cxn for configuration options.
None of the methods listed below are useful to the user. They are documented for those who are writing alternative implementations only.
pings_ok()
$promise = $cxn->pings_ok
Try to ping the node and call "mark_live()" or "mark_dead()" depending on the success or failure of the ping.
sniff()
$cxn->sniff ->then( sub { my ($cxn,$nodes) = @_; ... }, sub { my $cxn = shift; ... } )
Send a sniff request to the node and return the response.
Enrico Zimuel <enrico.zimuel@elastic.co>
This software is Copyright (c) 2022 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Search::Elasticsearch::Async, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Elasticsearch::Async
CPAN shell
perl -MCPAN -e shell install Search::Elasticsearch::Async
For more information on module installation, please visit the detailed CPAN module installation guide.