NAME

Search::Elasticsearch::Role::Cxn::Async - Provides common functionality to async Cxn implementations

VERSION

version 1.11

DESCRIPTION

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.

CONFIGURATION

See Search::Elasticsearch::Role::Cxn for configuration options.

METHODS

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.

AUTHOR

Clinton Gormley <drtech@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by Elasticsearch BV.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004