|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PushStatsDAO
Interface defining data access methods needed to manage push statistics in the persistent store.
| Method Summary | |
|---|---|
void |
addPushStats(PushStats pushStats)
Adds push statistics for the push application with the specified id and provided running push count, running content sum, and daily push count. |
int[] |
batchUpdatePushStats(Map<String,PushStats> pushStatsMap)
Performs a batch update of push statistics for various push applications. |
PushStats |
getPushStats(String pushApplicationId,
boolean preferUseCache)
Gets push statistics for the specified push application. |
void |
resetRunningContentSum(String pushApplicationId)
Resets the running content sum pushed to the specified push application. |
void |
resetRunningPushCount(String pushApplicationId)
Resets the running push count for the specified push application. |
void |
updateCache(PushStats pushStats)
Updates the cache with the given push stats. |
int |
updatePushStats(PushStats pushStats)
Updates push statistics for the specified push application. |
| Method Detail |
|---|
void addPushStats(PushStats pushStats)
throws org.springframework.dao.DataAccessException
pushStats - push statistics that contain id of the push application, running push count, running content sum, and daily push
count
org.springframework.dao.DataAccessException - if any data access errors occur
int updatePushStats(PushStats pushStats)
throws org.springframework.dao.DataAccessException
pushStats - push statistics that contain id of the push application, running push count, running content sum, and daily push
count
addPushStats.
org.springframework.dao.DataAccessException - if any data access errors occur
int[] batchUpdatePushStats(Map<String,PushStats> pushStatsMap)
throws org.springframework.dao.DataAccessException
pushStatsMap - the push stats to update in storage
org.springframework.dao.DataAccessException - if any data access errors occur
PushStats getPushStats(String pushApplicationId,
boolean preferUseCache)
throws org.springframework.dao.DataAccessException
pushApplicationId - id of the push applicationpreferUseCache - specifies whether the cached value of the remaining quota is preferable or not. In the first case (
preferUseCache is equal to true), the method will try to retrieve the remaining quota
from the cache first. If there is no cached value found, a look up in the persistent store will be done. If
preferUseCache is equal to false, the remaining quota will always be retrieved from
the persistent store. Using the cache will generally be a faster operation. Note: Retrieving the remaining quota
from the persistent store can be somewhat inaccurate. Updates to the push statistics in storage are batched and
persisted at a regular interval and so the stats might be slightly off within that interval.
org.springframework.dao.DataAccessException - if any data access errors occur
void resetRunningPushCount(String pushApplicationId)
throws org.springframework.dao.DataAccessException
pushApplicationId - id of the push application
org.springframework.dao.DataAccessException - if any data access errors occur
void resetRunningContentSum(String pushApplicationId)
throws org.springframework.dao.DataAccessException
pushApplicationId - id of the push application
org.springframework.dao.DataAccessException - if any data access errors occurvoid updateCache(PushStats pushStats)
pushStats - the push stats to updated the cache with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||