Package org.duracloud.common.util
Class OperationTimer<T>
- java.lang.Object
-
- org.duracloud.common.util.OperationTimer<T>
-
- Type Parameters:
T-
public abstract class OperationTimer<T> extends Object
A handy class that lets you wrap any operation in a stopwatch that will output elapsed time and an arbitrary message to the log.- Author:
- Daniel Bernstein
-
-
Constructor Summary
Constructors Constructor Description OperationTimer(String message)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Texecute()abstract TexecuteImpl()Implements the execution of the operation to be timed.
-