| Constructor and Description |
|---|
WebhookTemplate(Application application,
String endpointUrl,
String token) |
WebhookTemplate(Webhook webhook) |
| Modifier and Type | Method and Description |
|---|---|
Application |
getApplication() |
String |
getEndpointUrl() |
long |
getFailuresSinceLastSuccess() |
Long |
getId() |
Date |
getOldestFailureDate() |
String |
getToken() |
void |
resetFailuresSinceLastSuccess() |
void |
resetOldestFailureDate() |
void |
setFailuresSinceLastSuccess(long failuresSinceLastSuccess) |
void |
setOldestFailureDate(Date oldestFailureDate) |
String |
toString() |
public WebhookTemplate(Application application, String endpointUrl, @Nullable String token)
public WebhookTemplate(Webhook webhook)
public String getEndpointUrl()
getEndpointUrl in interface Webhookpublic Application getApplication()
getApplication in interface Webhook@Nullable public Date getOldestFailureDate()
getOldestFailureDate in interface Webhookpublic long getFailuresSinceLastSuccess()
getFailuresSinceLastSuccess in interface Webhookpublic void setOldestFailureDate(Date oldestFailureDate)
public void resetOldestFailureDate()
public void setFailuresSinceLastSuccess(long failuresSinceLastSuccess)
public void resetFailuresSinceLastSuccess()
Copyright © 2016 Atlassian. All rights reserved.