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

com.hubspot.singularity.scheduler.SingularityCrashLoopPoller Maven / Gradle / Ivy

package com.hubspot.singularity.scheduler;

import com.google.inject.Inject;
import java.util.concurrent.TimeUnit;
import javax.inject.Singleton;

@Singleton
public class SingularityCrashLoopPoller extends SingularityLeaderOnlyPoller {
  private final SingularityCrashLoopChecker checker;

  @Inject
  SingularityCrashLoopPoller(SingularityCrashLoopChecker checker) {
    super(1, TimeUnit.MINUTES);
    this.checker = checker;
  }

  @Override
  public void runActionOnPoll() {
    checker.checkCooldowns();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy