public interface DataSiftResult
| Modifier and Type | Method and Description |
|---|---|
void |
failed(Throwable e) |
Throwable |
failureCause() |
String |
getError() |
Response |
getResponse() |
boolean |
isAuthorizationSuccesful() |
boolean |
isSuccessful()
A response is considered successful if if a response has been received, the response doesn't contain an error
message AND the HTTP response status code is 200 to 399 (i.e.
|
int |
rateLimit() |
int |
rateLimitCost()
Not all API calls are created equally.
|
int |
rateLimitRemaining() |
void |
setResponse(Response response) |
void |
successful() |
boolean isSuccessful()
Response getResponse()
void setResponse(Response response)
Throwable failureCause()
boolean isAuthorizationSuccesful()
int rateLimit()
DataSiftClient.DEFAULT_NUM
if the information was not returnedint rateLimitRemaining()
DataSiftClient.DEFAULT_NUM if the information was not returnedint rateLimitCost()
DataSiftClient.DEFAULT_NUM if the information was not returnedString getError()
isSuccessful() == false then this returns the error message DataSift returned or null if truevoid failed(Throwable e)
void successful()
Copyright © 2015. All Rights Reserved.