Class ImmutableWebhook
java.lang.Object
com.atlassian.crowd.model.webhook.ImmutableWebhook
- All Implemented Interfaces:
Webhook
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedImmutableWebhook(Long id, String endpointUrl, ImmutableApplication application, String token, Date oldestFailureDate, long failuresSinceLastSuccess) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableWebhook.Builderbuilder()static ImmutableWebhook.BuilderbooleanlonggetId()getToken()inthashCode()toString()
-
Constructor Details
-
ImmutableWebhook
protected ImmutableWebhook(Long id, String endpointUrl, ImmutableApplication application, String token, Date oldestFailureDate, long failuresSinceLastSuccess)
-
-
Method Details
-
getId
-
getEndpointUrl
- Specified by:
getEndpointUrlin interfaceWebhook
-
getApplication
- Specified by:
getApplicationin interfaceWebhook
-
getToken
-
getOldestFailureDate
- Specified by:
getOldestFailureDatein interfaceWebhook- Returns:
- Date of the last failed delivery that has not been followed by any successful delivery. May be null if the last delivery was successful, or if no delivery has been attempted yet (i.e., new Webhooks).
-
getFailuresSinceLastSuccess
public long getFailuresSinceLastSuccess()- Specified by:
getFailuresSinceLastSuccessin interfaceWebhook- Returns:
- Number of consecutive failed attempts to deliver the ping to the Webhook since the last successful delivery, or since the Webhook was created. May be zero if the last delivery was successful, or if the Webhook has just been created.
-
builder
-
builder
-
equals
-
hashCode
public int hashCode() -
toString
-