RequestState is used to indicate current Request state.
ConnectionManager uses it to decide what to do with the Request.
PROCESSING state indicates that Request is working. ConnectionManager calls handle() method of Requests in that state.
PAUSED state indicates that Request is not working. ConnectionManager keeps Requests in that state and doesn't call any methods of those.
RETRY state indicates that Request must restart after a few seconds. ConnectionManager calls handleRetry() method of Requests in that state. Default handleRetry() implementation decreases _retryInSeconds value until it reaches zero. When it does, Request's restart() method is called.
FINISHED state indicates that Request did the work and might be deleted. ConnectionManager deletes Requests in that state. After this state is set, but before ConnectionManager deletes the Request, Request calls user's callback. User can ask Request to change its state by calling retry() or pause() methods and Request won't be deleted.
Request get a success and failure callbacks. Request must call one (and only one!) of these callbacks when it sets FINISHED state.
Definition at line 113 of file request.h.