Class NullTimingHandler

java.lang.Object
co.aikar.timings.NullTimingHandler
All Implemented Interfaces:
Timing, AutoCloseable

@Deprecated(forRemoval=true) public final class NullTimingHandler extends Object implements Timing
Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Timing
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    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 Handlers
    Deprecated, for removal: This API element is subject to removal in a future version.
    Starts timing the execution until Timing.stopTiming() is called.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Starts timing the execution until Timing.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NULL

      public static final Timing 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

      @NotNull public @NotNull Timing startTiming()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Timing
      Starts timing the execution until Timing.stopTiming() is called.
      Specified by:
      startTiming in interface Timing
      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 interface Timing
    • startTimingIfSync

      @NotNull public @NotNull Timing startTimingIfSync()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Timing
      Starts timing the execution until Timing.stopTiming() is called. But only if we are on the primary thread.
      Specified by:
      startTimingIfSync in interface Timing
      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 interface Timing
    • abort

      public void abort()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      abort in interface Timing
    • getTimingHandler

      @Nullable public @Nullable co.aikar.timings.TimingHandler 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 interface Timing
      Returns:
      TimingHandler
    • close

      public void close()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Timing