public final class CountCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CountCache.RequestRecord
A cached record of a count request.
|
static class |
CountCache.WAPResponse
A response from the CountWAP API.
|
(package private) static class |
CountCache.WAPResponseP
A particular poll in a response from the count engine's Web API.
|
Constructor and Description |
---|
CountCache() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
appendRequestLoc(String pollName,
StringBuilder b)
Appends the common portion of a CountWAP
request to the string builder.
|
static CountCache |
i()
The single instance of CountCache.
|
static StringBuilder |
requestCount_loc(String pollName,
StringBuilder b)
Appends the location for calls to
requestCount and returns the string
builder. |
JsonpRequest<CountCache.WAPResponse> |
requestCount(String pollName,
String loc,
AsyncCallback<CountJS> callback)
Requests a count from the remote count engine and stores a record of the request
in this cache.
|
CountCache.RequestRecord |
requestRecord(String pollName)
Returns a cached record of a count request, or null if no record is cached.
|
public CountCache()
public static CountCache i()
static void appendRequestLoc(String pollName, StringBuilder b)
public JsonpRequest<CountCache.WAPResponse> requestCount(String pollName, String loc, AsyncCallback<CountJS> callback)
public static StringBuilder requestCount_loc(String pollName, StringBuilder b)
requestCount
and returns the string
builder.public CountCache.RequestRecord requestRecord(String pollName)