static
boolean
|
isLast(int status)
Checks whether the provided status includes the `IS_LAST` flag, marking this as the last result
the consumer will receive.
|
static
boolean
|
isNotLast(int status)
Checks whether the provided status includes the `IS_LAST` flag, marking this as the last result
the consumer will receive.
|
synchronized
void
|
onCancellation()
Called by a producer whenever it is cancelled and won't produce any more results
|
abstract
void
|
onCancellationImpl()
Called by onCancellation, override this method instead
|
synchronized
void
|
onFailure(Throwable t)
Called by a producer whenever it terminates further work due to Throwable being thrown.
|
abstract
void
|
onFailureImpl(Throwable t)
Called by onFailure, override this method instead
|
synchronized
void
|
onNewResult(T newResult, int status)
Called by a producer whenever new data is produced.
|
abstract
void
|
onNewResultImpl(T newResult, int status)
Called by onNewResult, override this method instead.
|
synchronized
void
|
onProgressUpdate(float progress)
Called when the progress updates.
|
void
|
onProgressUpdateImpl(float progress)
Called when the progress updates
|
void
|
onUnhandledException(Exception e)
Called whenever onNewResultImpl or onFailureImpl throw an exception
|
static
int
|
simpleStatusForIsLast(boolean isLast)
Creates a simple status value which only identifies whether this is the last result.
|
static
boolean
|
statusHasAnyFlag(int status, int flag)
Checks whether the provided status contains any of the specified flags.
|
static
boolean
|
statusHasFlag(int status, int flag)
Checks whether the provided status contains a specified flag.
|
static
int
|
turnOffStatusFlag(int status, int flag)
Updates a provided status by ensuring the specified flag is turned off.
|
static
int
|
turnOnStatusFlag(int status, int flag)
Updates a provided status by ensuring the specified flag is turned on.
|