Class APIUsage
java.lang.Object
org.deltava.taglib.googlemap.APIUsage
A utility class to track Google Maps API usage.
- Since:
- 6.0
- Version:
- 9.0
- Author:
- Luke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumGoogle Maps API types. -
Method Summary
Modifier and TypeMethodDescription(package private) static longget(APIUsage.Type t) Returns the number of times the API has been invoked.(package private) static voidtrack(APIUsage.Type t, boolean isAnonymous) Track Google Maps API usage.
-
Method Details
-
track
Track Google Maps API usage.- Parameters:
t- the API typeisAnonymous- TRUE if an unauthenticated request, otherwise FALSE
-
get
Returns the number of times the API has been invoked.- Parameters:
t- the API type- Returns:
- the number of invocation times
-