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

com.hubspot.singularity.hooks.SingularityTaskWebhookAsyncHandler Maven / Gradle / Ivy

package com.hubspot.singularity.hooks;

import com.hubspot.singularity.SingularityTaskHistoryUpdate;
import com.hubspot.singularity.SingularityWebhook;
import com.hubspot.singularity.data.WebhookManager;

public class SingularityTaskWebhookAsyncHandler extends AbstractSingularityWebhookAsyncHandler  {

  private final WebhookManager webhookManager;

  public SingularityTaskWebhookAsyncHandler(WebhookManager webhookManager, SingularityWebhook webhook, SingularityTaskHistoryUpdate taskUpdate, boolean shouldDeleteUpdateDueToQueueAboveCapacity) {
    super(webhook, taskUpdate, shouldDeleteUpdateDueToQueueAboveCapacity);

    this.webhookManager = webhookManager;
  }

  @Override
  public void deleteWebhookUpdate() {
    webhookManager.deleteTaskUpdate(webhook, update);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy