com.duowan.mobile.netroid
Interface Delivery

All Known Implementing Classes:
ExecutorDelivery

public interface Delivery


Method Summary
 void postCancel(Request<?> request)
          Posts a cancel callback for the given request.
 void postDownloadProgress(Request<?> request, long fileSize, long downloadedSize)
          Posts file download progress stat.
 void postError(Request<?> request, NetroidError error)
          Posts an error for the given request.
 void postFinish(Request<?> request)
          Posts request finished callback for the given request.
 void postNetworking(Request<?> request)
          Posts networking callback for the given request.
 void postPreExecute(Request<?> request)
          Posts starting execute callback for the given request.
 void postResponse(Request<?> request, Response<?> response)
          Parses a response from the network or cache and delivers it.
 void postResponse(Request<?> request, Response<?> response, java.lang.Runnable runnable)
          Parses a response from the network or cache and delivers it.
 void postRetry(Request<?> request)
          Posts request retry callback for the given request.
 void postUsedCache(Request<?> request)
          Posts cache used callback for the given request.
 

Method Detail

postFinish

void postFinish(Request<?> request)
Posts request finished callback for the given request.


postResponse

void postResponse(Request<?> request,
                  Response<?> response)
Parses a response from the network or cache and delivers it.


postResponse

void postResponse(Request<?> request,
                  Response<?> response,
                  java.lang.Runnable runnable)
Parses a response from the network or cache and delivers it. The provided Runnable will be executed after delivery.


postError

void postError(Request<?> request,
               NetroidError error)
Posts an error for the given request.


postCancel

void postCancel(Request<?> request)
Posts a cancel callback for the given request.


postPreExecute

void postPreExecute(Request<?> request)
Posts starting execute callback for the given request.


postUsedCache

void postUsedCache(Request<?> request)
Posts cache used callback for the given request.


postNetworking

void postNetworking(Request<?> request)
Posts networking callback for the given request.


postRetry

void postRetry(Request<?> request)
Posts request retry callback for the given request.


postDownloadProgress

void postDownloadProgress(Request<?> request,
                          long fileSize,
                          long downloadedSize)
Posts file download progress stat.