Package com.fauna.client
Interface StatsCollector
-
- All Known Implementing Classes:
StatsCollectorImpl
public interface StatsCollector
-
-
Method Summary
All Methods Instance Methods Abstract 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
void add(QueryStats stats)
Add the QueryStats to the current counts.- Parameters:
stats- QueryStats object
-
read
QueryStatsSummary read()
Return the collected Stats.- Returns:
- Stats object
-
readAndReset
QueryStatsSummary readAndReset()
Return the collected Stats and reset counts.- Returns:
- Stats object
-
createNew
StatsCollector createNew()
Creates a new instance of aStatsCollector.- Returns:
- A
StatsCollectorinstance.
-
-