All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy