Class SchedulerOperationTimeoutLogger

java.lang.Object
de.hybris.platform.task.impl.SchedulerOperationTimeoutLogger

public class SchedulerOperationTimeoutLogger extends Object
Checks how much time the scheduler operation takes and warns if the operation is longer than the scheduler interval
  • Constructor Details

    • SchedulerOperationTimeoutLogger

      public SchedulerOperationTimeoutLogger(RuntimeConfigHolder runtimeConfigHolder, Instant startTime, Consumer<Duration> timeoutConsumer)
      Creates a new scheduler operation timeout logger
      Parameters:
      runtimeConfigHolder - configuration holder
  • Method Details

    • isTimeout

      public boolean isTimeout()
      Checks if scheduler operation takes more time than the scheduler interval
      Returns:
      true when timeout occurred
    • logTimeoutOnce

      public void logTimeoutOnce()
      Logs a one-time scheduler operation timeout