java.lang.Object
com.aoapps.hodgepodge.logging.ProcessTimer
- All Implemented Interfaces:
AutoCloseable
,Runnable
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.
- Author:
- AO Industries, Inc.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ProcessTimer
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
run
public void run()
-