Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

backwards-compatible StatsListener constructor

  • Loading branch information...
commit 0475d4c8a6e90d8a4ab75516a6f9f504f08d9eb5 1 parent 0ed7475
@jaked jaked authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/scala/com/twitter/ostrich/stats/StatsListener.scala
View
4 src/main/scala/com/twitter/ostrich/stats/StatsListener.scala
@@ -43,7 +43,9 @@ object StatsListener {
* Each report resets state, so counters are reported as deltas, and metrics distributions are
* only tracked since the last report.
*/
-class StatsListener(collection: StatsCollection, startClean: Boolean = true) {
+class StatsListener(collection: StatsCollection, startClean: Boolean) {
+ def this(collection: StatsCollection) = this(collection, true)
+
private val metricMap = new ConcurrentHashMap[String, Metric]()
private val lastCounterMap = new mutable.HashMap[String, Long]()
Please sign in to comment.
Something went wrong with that request. Please try again.