Package co.aikar.timings
Class FullServerTickHandler
java.lang.Object
co.aikar.timings.FullServerTickHandler
- All Implemented Interfaces:
Timing
,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
void
close()
This is simply for the Closeable interface so it can be used with try-with-resources ()boolean
@NotNull co.aikar.timings.TimingHandler
Used internally to get the actual backing Handler in the case of delegated Handlersint
hashCode()
boolean
boolean
Starts timing the execution untilTiming.stopTiming()
is called.Starts timing the execution untilTiming.stopTiming()
is called.void
Stops timing and records the data.void
Stops timing and records the data.
-
Method Details
-
startTiming
Description copied from interface:Timing
Starts timing the execution untilTiming.stopTiming()
is called.- Specified by:
startTiming
in interfaceTiming
- Returns:
- Timing
-
stopTiming
public void stopTiming()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
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()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 final void abort() -
getTimingHandler
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
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceTiming
-
isSpecial
public boolean isSpecial() -
isEnabled
public boolean isEnabled()
-