com.hubspot.singularity.hooks.SingularityRequestWebhookAsyncHandler Maven / Gradle / Ivy
package com.hubspot.singularity.hooks;
import com.hubspot.singularity.SingularityRequestHistory;
import com.hubspot.singularity.SingularityWebhook;
import com.hubspot.singularity.data.WebhookManager;
public class SingularityRequestWebhookAsyncHandler
extends AbstractSingularityWebhookAsyncHandler {
private final WebhookManager webhookManager;
public SingularityRequestWebhookAsyncHandler(
WebhookManager webhookManager,
SingularityWebhook webhook,
SingularityRequestHistory requestUpdate,
boolean shouldDeleteUpdateOnFailure
) {
super(webhook, requestUpdate, shouldDeleteUpdateOnFailure);
this.webhookManager = webhookManager;
}
@Override
public void deleteWebhookUpdate() {
webhookManager.deleteRequestUpdate(webhook, update);
}
}