Class APIUsage

java.lang.Object
org.deltava.taglib.googlemap.APIUsage

class APIUsage extends Object
A utility class to track Google Maps API usage.
Since:
6.0
Version:
9.0
Author:
Luke
  • Method Details

    • track

      static void track(APIUsage.Type t, boolean isAnonymous)
      Track Google Maps API usage.
      Parameters:
      t - the API type
      isAnonymous - TRUE if an unauthenticated request, otherwise FALSE
    • get

      static long get(APIUsage.Type t)
      Returns the number of times the API has been invoked.
      Parameters:
      t - the API type
      Returns:
      the number of invocation times