public final class RegionQuery extends CensusRankQuery<RegionQuery,Region,RegionShard>
shardsrateLimiter, resourceValuelogger| Constructor and Description |
|---|
RegionQuery(String regionName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildURL()
Generates a String URL based on the supplied values.
|
RegionQuery |
messagesFromId(long id)
Sets the id of the post to start from.
|
RegionQuery |
messagesLimit(int limit)
Sets the maximum number of posts to retrieve.
|
RegionQuery |
messagesOffset(int offset)
Sets the offset for the 10 most recent regional messages.
|
protected String |
resourceString()
Gives the resource string of this Query, e.g.
|
protected void |
validateQueryParameters()
Validates the query parameters before executing the query.
|
censusRanksStartcensusHistoryFrom, censusHistoryTo, censusIds, censusIds, censusModesshardsexecute, getRateLimiter, slowModecloseInputStreamQuietly, execute, makeRequest, translateResponsepublic RegionQuery(String regionName)
regionName - name of the region to querypublic final RegionQuery messagesOffset(int offset)
offset - the offset for the 10 most recent regional messagespublic final RegionQuery messagesFromId(long id)
id - the id of the post to start frompublic final RegionQuery messagesLimit(int limit)
limit - maximum number of posts to retrieveprotected String resourceString()
APIQueryresourceString in class APIQuery<RegionQuery,Region>protected void validateQueryParameters()
AbstractQueryvalidateQueryParameters in class APIQuery<RegionQuery,Region>protected String buildURL()
AbstractQuerybuildURL in class CensusRankQuery<RegionQuery,Region,RegionShard>Copyright © 2016. All rights reserved.