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 enum
Google Maps API types. -
Method Summary
Modifier and TypeMethodDescription(package private) static long
get
(APIUsage.Type t) Returns the number of times the API has been invoked.(package private) static void
track
(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
-