org.terracotta.statistics.derived
Class LatencySampling<T extends Enum<T>>

java.lang.Object
  extended by org.terracotta.statistics.AbstractSourceStatistic<ChainedEventObserver>
      extended by org.terracotta.statistics.derived.LatencySampling<T>
All Implemented Interfaces:
ChainedObserver, ChainedOperationObserver<T>, SourceStatistic<ChainedEventObserver>

public class LatencySampling<T extends Enum<T>>
extends AbstractSourceStatistic<ChainedEventObserver>
implements ChainedOperationObserver<T>

Author:
cdennis

Field Summary
 
Fields inherited from class org.terracotta.statistics.AbstractSourceStatistic
derivedStatistics
 
Constructor Summary
LatencySampling(Set<T> targets, double sampling)
           
 
Method Summary
 void begin(long time)
           
 void end(long time, T result)
           
 void end(long time, T result, long... parameters)
           
 
Methods inherited from class org.terracotta.statistics.AbstractSourceStatistic
addDerivedStatistic, removeDerivedStatistic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatencySampling

public LatencySampling(Set<T> targets,
                       double sampling)
Method Detail

begin

public void begin(long time)
Specified by:
begin in interface ChainedOperationObserver<T extends Enum<T>>

end

public void end(long time,
                T result)
Specified by:
end in interface ChainedOperationObserver<T extends Enum<T>>

end

public void end(long time,
                T result,
                long... parameters)
Specified by:
end in interface ChainedOperationObserver<T extends Enum<T>>


Copyright © 2016. All Rights Reserved.