Class ProcessTimer

All Implemented Interfaces:
AutoCloseable, Runnable

public class ProcessTimer extends Object implements Runnable, AutoCloseable
A ProcessTimer monitors how long something takes, and logs info when the task takes too long.

This should be submitted to an ExecutorService, but probably one that is unbounded and prepared for long-running tasks.

AO Industries, Inc.
  • Constructor Details

    • ProcessTimer

      public ProcessTimer(Logger logger, String sourceClass, String sourceMethod, String subject, String processDescription, long maximumTime, long reminderInterval)
  • Method Details