Package co.aikar.timings
Class NullTimingHandler
java.lang.Object
co.aikar.timings.NullTimingHandler
- All Implemented Interfaces:
Timing
,AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
Deprecated, for removal: This API element is subject to removal in a future version.void
close()
Deprecated, for removal: This API element is subject to removal in a future version.@Nullable co.aikar.timings.TimingHandler
Deprecated, for removal: This API element is subject to removal in a future version.Used internally to get the actual backing Handler in the case of delegated HandlersDeprecated, for removal: This API element is subject to removal in a future version.Starts timing the execution untilTiming.stopTiming()
is called.Deprecated, for removal: This API element is subject to removal in a future version.Starts timing the execution untilTiming.stopTiming()
is called.void
Deprecated, for removal: This API element is subject to removal in a future version.Stops timing and records the data.void
Deprecated, for removal: This API element is subject to removal in a future version.Stops timing and records the data.
-
Field Details
-
NULL
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
NullTimingHandler
public NullTimingHandler()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
startTiming
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Timing
Starts timing the execution untilTiming.stopTiming()
is called.- Specified by:
startTiming
in interfaceTiming
- Returns:
- Timing
-
stopTiming
public void stopTiming()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Timing
Stops timing and records the data. Propagates the data up to group handlers.
Will automatically be called when this Timing is used with try-with-resources- Specified by:
stopTiming
in interfaceTiming
-
startTimingIfSync
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Timing
Starts timing the execution untilTiming.stopTiming()
is called. But only if we are on the primary thread.- Specified by:
startTimingIfSync
in interfaceTiming
- Returns:
- Timing
-
stopTimingIfSync
public void stopTimingIfSync()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Timing
Stops timing and records the data. Propagates the data up to group handlers.
Will automatically be called when this Timing is used with try-with-resources
But only if we are on the primary thread.- Specified by:
stopTimingIfSync
in interfaceTiming
-
abort
public void abort()Deprecated, for removal: This API element is subject to removal in a future version. -
getTimingHandler
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Timing
Used internally to get the actual backing Handler in the case of delegated Handlers- Specified by:
getTimingHandler
in interfaceTiming
- Returns:
- TimingHandler
-
close
public void close()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceTiming
-