public class PlatformBackoffBarrier extends Object implements BackoffBarrier
SessionMetadata with a BackoffConfiguration to decide whether failure percentage threshold has been
reached and backoff should be applied.| Constructor and Description |
|---|
PlatformBackoffBarrier() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
gotError(SessionMetadata sessionMetadata)
Defines whether error occurred in the execution, depending on the
SessionMetadata. |
boolean |
shouldBackoff(SessionMetadata sessionMetadata,
BackoffConfiguration configuration)
Defines whether backoff must be performed, depending on a
BackoffConfiguration. |
public boolean shouldBackoff(SessionMetadata sessionMetadata, BackoffConfiguration configuration)
BackoffBarrierBackoffConfiguration.shouldBackoff in interface BackoffBarrierpublic boolean gotError(SessionMetadata sessionMetadata)
BackoffBarrierSessionMetadata.gotError in interface BackoffBarrierCopyright © 2014–2021 MuleSoft, Inc.. All rights reserved.