org.terracotta.statistics
Interface SourceStatistic<T extends ChainedObserver>

Type Parameters:
T - Supported derived observer type
All Known Subinterfaces:
OperationStatistic<T>
All Known Implementing Classes:
AbstractOperationStatistic, AbstractSourceStatistic, LatencySampling, OperationResultFilter

public interface SourceStatistic<T extends ChainedObserver>

Source statistic implementations support derived statistics.

Derived statistics can be registered and will then receive the relevant observer calls to update their status.


Method Summary
 void addDerivedStatistic(T derived)
          Register the given Observer to be called by this SourceStatistic
 void removeDerivedStatistic(T derived)
          Remove the given registered from this SourceStatistic.
 

Method Detail

addDerivedStatistic

void addDerivedStatistic(T derived)
Register the given Observer to be called by this SourceStatistic

Parameters:
derived - statistic to be registered

removeDerivedStatistic

void removeDerivedStatistic(T derived)
Remove the given registered from this SourceStatistic.

Parameters:
derived - statistic to be removed


Copyright © 2016. All Rights Reserved.