public class SimpleOpTimerFactory extends Object implements OpTimerFactory
| Constructor and Description |
|---|
SimpleOpTimerFactory() |
| Modifier and Type | Method and Description |
|---|---|
OpTimer |
createOpTimer(String name,
boolean captureCPUCost,
OpTimer.OnEndCallback endCallback)
This creates an OpTimer based on the passed in name and that will invoke the callback
when end is called.
|
public OpTimer createOpTimer(String name, boolean captureCPUCost, OpTimer.OnEndCallback endCallback)
OpTimerFactorycreateOpTimer in interface OpTimerFactoryname - the name of the OpTimercaptureCPUCost - true of the CPU cost of the operation is to be capturedendCallback - a call backed to be invokd when end is called on the OpTimerCopyright © 2016 Atlassian. All rights reserved.