com.hubspot.singularity.hooks.SingularityDeployWebhookAsyncHandler Maven / Gradle / Ivy
package com.hubspot.singularity.hooks;
import com.hubspot.singularity.SingularityDeployUpdate;
import com.hubspot.singularity.SingularityWebhook;
import com.hubspot.singularity.data.WebhookManager;
public class SingularityDeployWebhookAsyncHandler
extends AbstractSingularityWebhookAsyncHandler {
private final WebhookManager webhookManager;
public SingularityDeployWebhookAsyncHandler(
WebhookManager webhookManager,
SingularityWebhook webhook,
SingularityDeployUpdate deployUpdate,
boolean shouldDeleteUpdateDueToQueueAboveCapacity
) {
super(webhook, deployUpdate, shouldDeleteUpdateDueToQueueAboveCapacity);
this.webhookManager = webhookManager;
}
@Override
public void deleteWebhookUpdate() {
webhookManager.deleteDeployUpdate(webhook, update);
}
}