Package com.fauna.client
Class StatsCollectorImpl
- java.lang.Object
-
- com.fauna.client.StatsCollectorImpl
-
- All Implemented Interfaces:
StatsCollector
public final class StatsCollectorImpl extends java.lang.Object implements StatsCollector
-
-
Constructor Summary
Constructors Constructor Description StatsCollectorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(QueryStats stats)Add the QueryStats to the current counts.StatsCollectorcreateNew()Creates a new instance of aStatsCollector.QueryStatsSummaryread()Return the collected Stats.QueryStatsSummaryreadAndReset()Return the collected Stats and reset counts.
-
-
-
Method Detail
-
add
public void add(QueryStats stats)
Description copied from interface:StatsCollectorAdd the QueryStats to the current counts.- Specified by:
addin interfaceStatsCollector- Parameters:
stats- QueryStats object
-
read
public QueryStatsSummary read()
Description copied from interface:StatsCollectorReturn the collected Stats.- Specified by:
readin interfaceStatsCollector- Returns:
- Stats object
-
readAndReset
public QueryStatsSummary readAndReset()
Description copied from interface:StatsCollectorReturn the collected Stats and reset counts.- Specified by:
readAndResetin interfaceStatsCollector- Returns:
- Stats object
-
createNew
public StatsCollector createNew()
Description copied from interface:StatsCollectorCreates a new instance of aStatsCollector.- Specified by:
createNewin interfaceStatsCollector- Returns:
- A
StatsCollectorinstance.
-
-