|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.spinn3r.api.Config
public class Config
Used to startup the API and specify defaults for limits, where to start indexing, tiers, language, etc.
| Field Summary | |
|---|---|
static int |
DEFAULT_LIMIT
Default number of results to fetch. |
static long |
DEFAULT_SLEEP_INTERVAL
When we've ran out of results (because the client is up to date) then we should spin for a few seconds. |
static boolean |
DEFAULT_USE_PROTOBUF
Default value for useProtobuf. |
static java.lang.String |
DEFAULT_VERSION
When fetching the API this specifies the default version to return. |
| Constructor Summary | |
|---|---|
Config()
|
|
| Method Summary | |
|---|---|
java.util.Date |
getAfter()
Get the value of after. |
java.lang.String |
getApi()
Get the value of api. |
java.lang.String |
getFilter()
Get the value of filter. |
java.lang.String |
getFirstRequestURL()
Get the value of firstRequestURL. |
int |
getLimit()
Get the value of limit. |
boolean |
getSkipDescription()
Get the value of skipDescription. |
long |
getSleepInterval()
|
boolean |
getUseProtobuf()
Get the value of useProtobuf. |
java.lang.String |
getVendor()
Specify the vendor for this call. |
java.lang.String |
getVersion()
Get the value of version. |
void |
setAfter(java.util.Date after)
Set the value of after. |
void |
setApi(java.lang.String api)
Set the value of api. |
void |
setFilter(java.lang.String filter)
Set the value of filter. |
void |
setFirstRequestURL(java.lang.String firstRequestURL)
Set the value of firstRequestURL. |
void |
setLimit(int limit)
Deprecated. This method will be changing to protected in the future. We're going to remove the option for users to set the limit on the number of items per response as we have found this to cause problems in production applications. Having Spinn3r select the optimal values has turned out to be better for everyone involved and yielded much higher performance. |
void |
setSkipDescription(boolean skipDescription)
Set the value of skipDescription. |
void |
setUseProtobuf(boolean useProtobuf)
Set the value of useProtobuf. |
void |
setVendor(java.lang.String vendor)
Set the value of vendor. |
void |
setVersion(java.lang.String version)
Set the value of version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_SLEEP_INTERVAL
public static int DEFAULT_LIMIT
public static java.lang.String DEFAULT_VERSION
public static boolean DEFAULT_USE_PROTOBUF
| Constructor Detail |
|---|
public Config()
| Method Detail |
|---|
public java.lang.String getFilter()
filter.
public void setFilter(java.lang.String filter)
filter.
public boolean getUseProtobuf()
useProtobuf.
public void setUseProtobuf(boolean useProtobuf)
useProtobuf.
public void setFirstRequestURL(java.lang.String firstRequestURL)
firstRequestURL.
public java.lang.String getFirstRequestURL()
firstRequestURL.
public java.util.Date getAfter()
after.
public void setAfter(java.util.Date after)
after.
public java.lang.String getVendor()
public void setVendor(java.lang.String vendor)
vendor.
public java.lang.String getVersion()
version.
public void setVersion(java.lang.String version)
version.
public void setLimit(int limit)
limit.
public int getLimit()
limit.
public long getSleepInterval()
public boolean getSkipDescription()
skipDescription.
public void setSkipDescription(boolean skipDescription)
skipDescription.
public java.lang.String getApi()
api.
public void setApi(java.lang.String api)
api.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||