2017 © Pedro Peláez
 

library retry-handler

PHP implementation of retry-handler

image

retry-handler/retry-handler

PHP implementation of retry-handler

  • Monday, March 19, 2012
  • by yuya-takeyama
  • Repository
  • 1 Watchers
  • 17 Stars
  • 2,710 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

RetryHandler

master: Build Status develop: Build Status, (*1)

Retrys any procedure., (*2)

Heavily inspired by kimoto/retry-handler, (*3)

Synopsis

Basic usage

<?php
use \RetryHandler\Proc;
use \RetryHandler\RetryOverException;

$proc = new Proc(function () {
    // Some procedure may cause error.
});
try {
    // Trys to invoke procedure until it succeeded.
    $proc->retry(3);
} catch (RetryOverException $e) {
    // 3 times of trial had been failed.
}

Wait after failure

Waits specified seconds after a trial failed. 1 second by default., (*4)

<?php
$proc->retry(3, array('wait' => '5'));

Specify accepted exception

<?php
$proc->retry(3, array('accepted_exception' => 'Guzzle\Http\HttpException'));

Author

Yuya Takeyama http://yuyat.jp/, (*5)

The Versions

19/03 2012

dev-master

9999999-dev http://github.com/yuya-takeyama/retry-handler-php

PHP implementation of retry-handler

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

retry

19/03 2012

v0.0.0

0.0.0.0 http://github.com/yuya-takeyama/retry-handler-php

PHP implementation of retry-handler

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

retry

19/03 2012

dev-develop

dev-develop http://github.com/yuya-takeyama/retry-handler-php

PHP implementation of retry-handler

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

retry