public method Resilience.create
Overview
Creates a new instance of the Resilence class
Declaration
function create(attempts, periodInMilliseconds)
public static Resilience create(int attempts, int periodInMilliseconds);
public static Resilience create(int attempts, int periodInMilliseconds);
Parameters
| Name | Description |
|---|---|
| attempts | The number of attempts before error report |
| periodInMilliseconds | The period of waiting before next attempt (millisecods) |
Returns
The method returns the instance of the Resilence class
Details
Declared in Resilience