public abstract class URLRetriableTask extends URLTask implements Retriable
Task.TaskListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME |
static java.lang.String |
INTENT_COMPLETE |
static boolean |
LOG_ENABLED |
protected boolean |
mSucceeded |
static java.lang.String |
TAG |
DEFAULT_BUFFER, DEFAULT_TIMEOUT, EXTRA_URL, mBuffer, mBufferSize, mContentLength, mGzipEnabled, mTotalBytesLoaded, mURLRETRY_UNLIMITED| Constructor and Description |
|---|
URLRetriableTask(java.lang.String srcURL) |
URLRetriableTask(java.lang.String srcURL,
int retryMax) |
URLRetriableTask(java.lang.String srcURL,
int retryMax,
int retryDelay) |
| Modifier and Type | Method and Description |
|---|---|
Intent |
getCompleteIntent() |
boolean |
isSucceeded() |
void |
reset() |
protected boolean |
retry() |
boolean |
run() |
getURL, isGzipEnabled, onProgress, openURL, openURL, postURL, readStream, setGzipEnabledpublic static boolean LOG_ENABLED
public static final java.lang.String TAG
public static final java.lang.String CLASS_NAME
public static final java.lang.String INTENT_COMPLETE
protected boolean mSucceeded
public URLRetriableTask(java.lang.String srcURL)
public URLRetriableTask(java.lang.String srcURL,
int retryMax)
public URLRetriableTask(java.lang.String srcURL,
int retryMax,
int retryDelay)
protected boolean retry()
public Intent getCompleteIntent()
getCompleteIntent in interface IntentTaskgetCompleteIntent in class URLTaskpublic boolean isSucceeded()
isSucceeded in interface Task