Q - the child class that extends this abstract classR - the type the child class' execute()-function returnsS - the shard type the child class acceptspublic abstract class ShardQuery<Q extends ShardQuery,R,S extends Shard> extends APIQuery<Q,R>
| Modifier and Type | Field and Description |
|---|---|
protected S[] |
shards
See shards(...).
|
rateLimiter, resourceValuelogger| Constructor and Description |
|---|
ShardQuery(String resourceValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildURL()
Generates a String URL based on the supplied values.
|
Q |
shards(S... shards)
Sets the shards.
|
execute, getRateLimiter, resourceString, slowMode, validateQueryParameterscloseInputStreamQuietly, execute, makeRequest, translateResponsepublic ShardQuery(String resourceValue)
resourceValue - the resource valuepublic final Q shards(S... shards)
shards - the shards to setprotected String buildURL()
AbstractQuerybuildURL in class APIQuery<Q extends ShardQuery,R>Copyright © 2016. All rights reserved.