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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy