ConnectionPoolInterface.php 594 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Elasticsearch\ConnectionPool;
  3. use Elasticsearch\Connections\ConnectionInterface;
  4. /**
  5. * ConnectionPoolInterface
  6. *
  7. * @category Elasticsearch
  8. * @package Elasticsearch\ConnectionPool
  9. * @author Zachary Tong <zach@elastic.co>
  10. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
  11. * @link http://elastic.co
  12. */
  13. interface ConnectionPoolInterface
  14. {
  15. /**
  16. * @param bool $force
  17. *
  18. * @return ConnectionInterface
  19. */
  20. public function nextConnection($force = false);
  21. /**
  22. * @return void
  23. */
  24. public function scheduleCheck();
  25. }