Package com.aoindustries.util.logging
Class ProcessTimer
- java.lang.Object
-
- com.aoindustries.util.logging.ProcessTimer
-
- All Implemented Interfaces:
AutoCloseable,Runnable
public class ProcessTimer extends Object implements Runnable, AutoCloseable
AProcessTimermonitors how long something takes, and logs info when the task takes too long. This should be submitted to anExecutorService, but probably one that is unbounded and prepared for long-running tasks.- Author:
- AO Industries, Inc.
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-