Class GeneralOperationStatistic<T extends Enum<T>>

Type Parameters:
T - the operation result enum type
All Implemented Interfaces:
OperationObserver<T>, OperationStatistic<T>, SourceStatistic<ChainedOperationObserver<? super T>>

class GeneralOperationStatistic<T extends Enum<T>> extends AbstractOperationStatistic<T> implements OperationStatistic<T>
An operation observer that tracks operation result counts and can drive further derived statistics.

AbstractOperationStatistic.begin() and end(Enum) must be called from the same thread so that latency can be computed.

  • Field Details

  • Constructor Details

    • GeneralOperationStatistic

      GeneralOperationStatistic(String name, Set<String> tags, Map<String,? extends Object> properties, Class<T> type)
      Create an operation statistics for a given operation result type.
      Parameters:
      properties - a set of context properties
      type - operation result type
  • Method Details