Class StatisticBuilder.OperationStatisticBuilder<T extends java.lang.Enum<T>>

  • Type Parameters:
    T - the generic type
    Enclosing class:
    StatisticBuilder

    public static class StatisticBuilder.OperationStatisticBuilder<T extends java.lang.Enum<T>>
    extends java.lang.Object
    The Class OperationStatisticBuilder.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object context
      The context.
      protected java.lang.String name
      The name.
      protected java.util.Set<java.lang.String> tags
      The tags.
    • Constructor Summary

      Constructors 
      Constructor Description
      OperationStatisticBuilder​(java.lang.Class<T> type)
      Instantiates a new operation statistic builder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.terracotta.statistics.observer.OperationObserver<T> build()
      Builds the.
      T named​(java.lang.String name)
      Named.
      T of​(java.lang.Object of)
      Of.
      T tag​(java.lang.String... tags)
      Tag.
      • Methods inherited from class java.lang.Object

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

      • tags

        protected final java.util.Set<java.lang.String> tags
        The tags.
      • context

        protected java.lang.Object context
        The context.
      • name

        protected java.lang.String name
        The name.
    • Constructor Detail

      • OperationStatisticBuilder

        public OperationStatisticBuilder​(java.lang.Class<T> type)
        Instantiates a new operation statistic builder.
        Parameters:
        type - the type
    • Method Detail

      • build

        public org.terracotta.statistics.observer.OperationObserver<T> build()
        Builds the.
        Returns:
        the operation observer
      • of

        public T of​(java.lang.Object of)
        Of.
        Parameters:
        of - the of
        Returns:
        the t
      • named

        public T named​(java.lang.String name)
        Named.
        Parameters:
        name - the name
        Returns:
        the t
      • tag

        public T tag​(java.lang.String... tags)
        Tag.
        Parameters:
        tags - the tags
        Returns:
        the t