CircuitBreakerOptions

Circuit breaker configuration options. All time are given in milliseconds.

package

Default

Methods

CircuitBreakerOptions constructor

__construct( $circuitBreakerOptions = null) 

Arguments

$circuitBreakerOptions

mixed | null

getFailuresRollingWindow

getFailuresRollingWindow() : integer

Response

integer

getMaxFailures

getMaxFailures() : integer

Response

integer

getMaxRetries

getMaxRetries() : integer

Response

integer

getMetricsRollingBuckets

getMetricsRollingBuckets() : integer

Response

integer

getMetricsRollingWindow

getMetricsRollingWindow() : integer

Response

integer

getNotificationAddress

getNotificationAddress() : string

Response

string

getNotificationPeriod

getNotificationPeriod() : integer

Response

integer

getResetTimeout

getResetTimeout() : integer

Response

integer

getTimeout

getTimeout() : integer

Response

integer

isFallbackOnFailure

isFallbackOnFailure() : boolean

Response

boolean

setFailuresRollingWindow

setFailuresRollingWindow( $failuresRollingWindow) : $this

Arguments

$failuresRollingWindow

integer

Response

$this

setFallbackOnFailure

setFallbackOnFailure( $fallbackOnFailure) : $this

Arguments

$fallbackOnFailure

boolean

Response

$this

setMaxFailures

setMaxFailures( $maxFailures) : $this

Arguments

$maxFailures

integer

Response

$this

setMaxRetries

setMaxRetries( $maxRetries) : $this

Arguments

$maxRetries

integer

Response

$this

setMetricsRollingBuckets

setMetricsRollingBuckets( $metricsRollingBuckets) : $this

Arguments

$metricsRollingBuckets

integer

Response

$this

setMetricsRollingWindow

setMetricsRollingWindow( $metricsRollingWindow) : $this

Arguments

$metricsRollingWindow

integer

Response

$this

setNotificationAddress

setNotificationAddress( $notificationAddress) : $this

Arguments

$notificationAddress

string

Response

$this

setNotificationPeriod

setNotificationPeriod( $notificationPeriod) : $this

Arguments

$notificationPeriod

integer

Response

$this

setResetTimeout

setResetTimeout( $resetTimeout) : $this

Arguments

$resetTimeout

integer

Response

$this

setTimeout

setTimeout( $timeout) : $this

Arguments

$timeout

integer

Response

$this