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, mURL
RETRY_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, setGzipEnabled
public 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 IntentTask
getCompleteIntent
in class URLTask
public boolean isSucceeded()
isSucceeded
in interface Task