public class NoLongTermFailureStrategy extends Object implements WebhookHealthStrategy
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MIN_FAILURES |
static long |
DEFAULT_MIN_INTERVAL_MILLIS |
Constructor and Description |
---|
NoLongTermFailureStrategy() |
NoLongTermFailureStrategy(long minFailures,
long minIntervalMillis) |
Modifier and Type | Method and Description |
---|---|
long |
getMinFailures() |
long |
getMinIntervalMillis() |
boolean |
isInGoodStanding(Webhook webhook)
Decides whether the Webhook is in good standing.
|
Webhook |
registerFailure(Webhook webhook)
Register a failed ping delivery to a Webhook.
|
Webhook |
registerSuccess(Webhook webhook)
Register a successful ping delivery to a Webhook.
|
public static final long DEFAULT_MIN_FAILURES
public static final long DEFAULT_MIN_INTERVAL_MILLIS
public NoLongTermFailureStrategy()
public NoLongTermFailureStrategy(long minFailures, long minIntervalMillis)
public Webhook registerSuccess(Webhook webhook)
WebhookHealthStrategy
registerSuccess
in interface WebhookHealthStrategy
webhook
- Webhook that has just been successfully pingedpublic Webhook registerFailure(Webhook webhook)
WebhookHealthStrategy
registerFailure
in interface WebhookHealthStrategy
webhook
- Webhook that has just been unsuccessfully pingedpublic boolean isInGoodStanding(Webhook webhook)
WebhookHealthStrategy
isInGoodStanding
in interface WebhookHealthStrategy
webhook
- Webhook which status is examined.public long getMinFailures()
public long getMinIntervalMillis()
Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences