Class APIUsage
java.lang.Object
org.deltava.beans.stats.APIUsage
- All Implemented Interfaces:
Serializable
,Comparable<APIUsage>
,Cacheable
A bean to store external API usage statistics.
- Since:
- 9.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()
Returns the cache key for this object.int
int
Returns the number of anonymous API invocations.int
Returns the number of blocked API invocations.getDate()
Returns the statistics date.getName()
Returns the API/method name.int
getTotal()
Returns the total number of API invocations.void
setAnonymous
(int cnt) Updates the number of anonymous API invocations.void
setBlocked
(int cnt) Updates the number of blocked API invocations.void
setTotal
(int cnt) Updates the total number of API invocations.
-
Constructor Details
-
APIUsage
-
-
Method Details
-
getName
-
getDate
-
getTotal
public int getTotal()Returns the total number of API invocations.- Returns:
- the number of invocations
-
getAnonymous
public int getAnonymous()Returns the number of anonymous API invocations.- Returns:
- the number of invocations
-
getBlocked
public int getBlocked()Returns the number of blocked API invocations.- Returns:
- the number of blocked invocations
-
setTotal
public void setTotal(int cnt) Updates the total number of API invocations.- Parameters:
cnt
- the number of invocations
-
setAnonymous
public void setAnonymous(int cnt) Updates the number of anonymous API invocations.- Parameters:
cnt
- the number of invocations
-
setBlocked
public void setBlocked(int cnt) Updates the number of blocked API invocations.- Parameters:
cnt
- the number of invocations
-
compareTo
- Specified by:
compareTo
in interfaceComparable<APIUsage>
-
cacheKey
-