Merge branch 'snapshots'
[aquarium] / src / main / scala / gr / grnet / aquarium / store / ResourceEventStore.scala
index 4650285..a5d657b 100644 (file)
@@ -57,9 +57,17 @@ trait ResourceEventStore {
    */
   def countOutOfSyncResourceEventsForBillingPeriod(userID: String, startMillis: Long, stopMillis: Long): Long
 
+  /**
+   *
+   * @param userID
+   * @param startMillis
+   * @param stopMillis
+   * @param f
+   * @return The number of resource events processed.
+   */
   def foreachResourceEventOccurredInPeriod(
       userID: String,
       startMillis: Long,
       stopMillis: Long
-  )(f: ResourceEventMsg ⇒ Unit): Unit
+  )(f: ResourceEventMsg ⇒ Unit): Long
 }
\ No newline at end of file