- java.lang.Object
-
- de.codecamp.tracer.impl.NoOpActiveTrace
-
- All Implemented Interfaces:
ActiveTrace,AutoCloseable
public class NoOpActiveTrace extends Object implements ActiveTrace
-
-
Field Summary
Fields Modifier and Type Field Description static ActiveTraceINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend()Ends this trace and all sub-traces.ActiveTracestartSubTrace(String label, Object... labelFormatArgs)Starts and returns a new sub-trace which will be the new active trace.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.codecamp.tracer.ActiveTrace
close
-
-
-
-
Field Detail
-
INSTANCE
public static final ActiveTrace INSTANCE
-
-
Method Detail
-
startSubTrace
public ActiveTrace startSubTrace(String label, Object... labelFormatArgs)
Description copied from interface:ActiveTraceStarts and returns a new sub-trace which will be the new active trace. It's generally recommended to call this method in a try-with-resource.- Specified by:
startSubTracein interfaceActiveTrace- Parameters:
label- the label to use for this trace; may contain placeholderslabelFormatArgs- the format arguments for the placeholders in the label- Returns:
- the new active sub-trace
-
end
public void end()
Description copied from interface:ActiveTraceEnds this trace and all sub-traces.- Specified by:
endin interfaceActiveTrace
-
-