Class ImmutableWebhook
java.lang.Object
com.atlassian.crowd.model.webhook.ImmutableWebhook
- All Implemented Interfaces:
Webhook
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ImmutableWebhook
(Long id, String endpointUrl, ImmutableApplication application, String token, Date oldestFailureDate, long failuresSinceLastSuccess) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableWebhook.Builder
builder()
static ImmutableWebhook.Builder
boolean
long
getId()
getToken()
int
hashCode()
toString()
-
Constructor Details
-
ImmutableWebhook
protected ImmutableWebhook(Long id, String endpointUrl, ImmutableApplication application, String token, Date oldestFailureDate, long failuresSinceLastSuccess)
-
-
Method Details
-
getId
-
getEndpointUrl
- Specified by:
getEndpointUrl
in interfaceWebhook
-
getApplication
- Specified by:
getApplication
in interfaceWebhook
-
getToken
-
getOldestFailureDate
- Specified by:
getOldestFailureDate
in 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:
getFailuresSinceLastSuccess
in 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
-