Class TimingsManager

java.lang.Object
co.aikar.timings.TimingsManager

@Deprecated(forRemoval=true) public final class TimingsManager extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Timings will be removed in the future
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static List<String>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final Timing
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final co.aikar.timings.TimingHandler
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Due to access restrictions, we need a helper method to get a Command TimingHandler with String group
    Deprecated, for removal: This API element is subject to removal in a future version.
    Looks up the class loader for the specified class, and if it is a PluginClassLoader, return the Plugin that created this class.

    Methods inherited from class java.lang.Object

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

    • FULL_SERVER_TICK

      public static final FullServerTickHandler FULL_SERVER_TICK
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TIMINGS_TICK

      public static final co.aikar.timings.TimingHandler TIMINGS_TICK
      Deprecated, for removal: This API element is subject to removal in a future version.
    • PLUGIN_GROUP_HANDLER

      public static final Timing PLUGIN_GROUP_HANDLER
      Deprecated, for removal: This API element is subject to removal in a future version.
    • url

      public static String url
      Deprecated, for removal: This API element is subject to removal in a future version.
    • hiddenConfigs

      public static List<String> hiddenConfigs
      Deprecated, for removal: This API element is subject to removal in a future version.
    • privacy

      public static boolean privacy
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getCommandTiming

      @NotNull public static @NotNull Timing getCommandTiming(@Nullable @Nullable String pluginName, @NotNull @NotNull Command command)
      Deprecated, for removal: This API element is subject to removal in a future version.

      Due to access restrictions, we need a helper method to get a Command TimingHandler with String group

      Plugins should never call this
      Parameters:
      pluginName - Plugin this command is associated with
      command - Command to get timings for
      Returns:
      TimingHandler
    • getPluginByClassloader

      @Nullable public static @Nullable Plugin getPluginByClassloader(@Nullable @Nullable Class<?> clazz)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Looks up the class loader for the specified class, and if it is a PluginClassLoader, return the Plugin that created this class.
      Parameters:
      clazz - Class to check
      Returns:
      Plugin if created by a plugin