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 void
add(QueryStats stats)
Add the QueryStats to the current counts.StatsCollector
createNew()
Creates a new instance of aStatsCollector
.QueryStatsSummary
read()
Return the collected Stats.QueryStatsSummary
readAndReset()
Return the collected Stats and reset counts.
-
-
-
Method Detail
-
add
public void add(QueryStats stats)
Description copied from interface:StatsCollector
Add the QueryStats to the current counts.- Specified by:
add
in interfaceStatsCollector
- Parameters:
stats
- QueryStats object
-
read
public QueryStatsSummary read()
Description copied from interface:StatsCollector
Return the collected Stats.- Specified by:
read
in interfaceStatsCollector
- Returns:
- Stats object
-
readAndReset
public QueryStatsSummary readAndReset()
Description copied from interface:StatsCollector
Return the collected Stats and reset counts.- Specified by:
readAndReset
in interfaceStatsCollector
- Returns:
- Stats object
-
createNew
public StatsCollector createNew()
Description copied from interface:StatsCollector
Creates a new instance of aStatsCollector
.- Specified by:
createNew
in interfaceStatsCollector
- Returns:
- A
StatsCollector
instance.
-
-