BatchClientInterface.php 581 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Buzz\Client;
  3. use Buzz\Exception\ClientException;
  4. /**
  5. * A client capable of running batches of requests.
  6. *
  7. * The Countable implementation should return the number of queued requests.
  8. */
  9. interface BatchClientInterface extends ClientInterface, \Countable
  10. {
  11. /**
  12. * Processes all queued requests.
  13. *
  14. * @throws ClientException If something goes wrong
  15. */
  16. public function flush();
  17. /**
  18. * Processes zero or more queued requests.
  19. *
  20. * @throws ClientException If something goes wrong
  21. */
  22. public function proceed();
  23. }