Interface DirectoryMetrics.PluggableMetrics<T extends DirectoryMetrics.PluggableMetrics<T>>

All Superinterfaces:
ToXContent, ToXContentObject
All Known Implementing Classes:
StoreMetrics
Enclosing class:
DirectoryMetrics

public static interface DirectoryMetrics.PluggableMetrics<T extends DirectoryMetrics.PluggableMetrics<T>> extends ToXContentObject
  • Method Details

    • delta

      Supplier<T> delta()
      A delta object that measures the delta of the metric between invoking the delta method and the returned supplier.
      Returns:
      supplier of the delta.
    • copy

      T copy()
      Returns:
      copy of the metric object
    • cast

      default <R> R cast(Class<R> clazz)
      Convenience method to cast to the class specified.
      Parameters:
      clazz - class to cast to.
      Returns:
      object as clazz