public interface AggregateCounterRepository extends CounterRepository
| Modifier and Type | Method and Description |
|---|---|
AggregateCount |
getCounts(java.lang.String name,
org.joda.time.Interval interval,
org.joda.time.DateTimeField resolution)
Query function to allow the counts for a specific interval to be retrieved.
|
long |
increment(java.lang.String name,
long amount,
org.joda.time.DateTime dateTime)
Increments the named counter by a specific amount for the given instant.
|
decrement, increment, increment, resetfindAll, findAllcount, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, savefindAllInRangelong increment(java.lang.String name,
long amount,
org.joda.time.DateTime dateTime)
AggregateCount getCounts(java.lang.String name, org.joda.time.Interval interval, org.joda.time.DateTimeField resolution)
name - the counter to queryinterval - the time interval to return data for. Includes start, excludes end.resolution - the resolution at which the data should be returned (minutes or hours)