Package co.aikar.timings
Class FullServerTickHandler
java.lang.Object
co.aikar.timings.FullServerTickHandler
- All Implemented Interfaces:
Timing,AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidabort()voidclose()This is simply for the Closeable interface so it can be used with try-with-resources ()boolean@NotNull co.aikar.timings.TimingHandlerUsed internally to get the actual backing Handler in the case of delegated HandlersinthashCode()booleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.Starts timing the execution untilTiming.stopTiming()is called.Starts timing the execution untilTiming.stopTiming()is called.voidDeprecated, for removal: This API element is subject to removal in a future version.Stops timing and records the data.voidStops timing and records the data.
-
Method Details
-
startTiming
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TimingStarts timing the execution untilTiming.stopTiming()is called.- Specified by:
startTimingin 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:TimingStops 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:
stopTimingin interfaceTiming
-
startTimingIfSync
Description copied from interface:TimingStarts timing the execution untilTiming.stopTiming()is called. But only if we are on the primary thread.- Specified by:
startTimingIfSyncin interfaceTiming- Returns:
- Timing
-
stopTimingIfSync
public void stopTimingIfSync()Description copied from interface:TimingStops 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:
stopTimingIfSyncin interfaceTiming
-
abort
public final void abort() -
getTimingHandler
Description copied from interface:TimingUsed internally to get the actual backing Handler in the case of delegated Handlers- Specified by:
getTimingHandlerin interfaceTiming- Returns:
- TimingHandler
-
equals
-
hashCode
public int hashCode() -
close
public void close()This is simply for the Closeable interface so it can be used with try-with-resources ()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceTiming
-
isSpecial
public boolean isSpecial() -
isEnabled
public boolean isEnabled()
-