Class RetryCode

Description

Code that failed or throw some exception and need to be re-executed that code for some type of exceptions will be implemented with this abstract class.

We will implement this abstract class in any class that use retry code and override execute method that contains code that is to be re-executed.

  • author: Saad Rashid (msrashid@etilizepak.com)
  • version: 1.0
  • abstract:

Located in /models/RetryCode.php (line 16)


	
			
Direct descendents
Class Description
WSGateway This is a Gateway class to the WebService. All the web services requests will be sent through Gateway class.
Method Summary
void execute (array $arguments)
Object run (RetryCode $retryCode, array $arguments)
Methods
execute (line 24)

Execute method will be implemened by class that's inherit RetryCode and add retry logic.

  • abstract:
  • access: protected
void execute (array $arguments)
  • array $arguments

Redefined in descendants as:
  • WSGateway::execute() : This method will contain the code that would be executed using the retry logic.
run (line 39)

Method that runs the retry logic. In uses following configuration parameters in the retry logic.

  • maxRetries
  • retryEnabled
  • retryWaitTime

  • access: public
Object run (RetryCode $retryCode, array $arguments)

Documentation generated on Wed, 13 Feb 2008 01:57:39 +0500 by phpDocumentor 1.4.0a2