Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://aoindustries.com/contact
public class ProcessTimer extends Object implements Runnable, AutoCloseable
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.| Constructor and Description |
|---|
ProcessTimer(Logger logger,
Random random,
String sourceClass,
String sourceMethod,
String subject,
String processDescription,
long maximumTime,
long reminderInterval)
Deprecated.
The
Random instance is unused. Please use ProcessTimer(java.util.logging.Logger, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long, long) instead. |
ProcessTimer(Logger logger,
String sourceClass,
String sourceMethod,
String subject,
String processDescription,
long maximumTime,
long reminderInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finished()
Deprecated.
Call
close() via AutoCloseable instead. |
void |
run() |
public ProcessTimer(Logger logger, String sourceClass, String sourceMethod, String subject, String processDescription, long maximumTime, long reminderInterval)
@Deprecated public ProcessTimer(Logger logger, Random random, String sourceClass, String sourceMethod, String subject, String processDescription, long maximumTime, long reminderInterval)
Random instance is unused. Please use ProcessTimer(java.util.logging.Logger, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long, long) instead.public void close()
close in interface AutoCloseable@Deprecated public void finished()
close() via AutoCloseable instead.Copyright © 2000–2019 AO Industries, Inc.. All rights reserved.