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

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

package com.hubspot.singularity.hooks;

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

public class SingularityCrashLoopWebhookAsyncHandler
  extends AbstractSingularityWebhookAsyncHandler {
  private final WebhookManager webhookManager;

  public SingularityCrashLoopWebhookAsyncHandler(
    WebhookManager webhookManager,
    SingularityWebhook webhook,
    CrashLoopInfo crashLoopUpdate,
    boolean shouldDeleteUpdateDueToQueueAboveCapacity
  ) {
    super(webhook, crashLoopUpdate, shouldDeleteUpdateDueToQueueAboveCapacity);
    this.webhookManager = webhookManager;
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy