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 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
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
StatsCollector
instance.
-
-