com.octo.android.robospice.request
Interface RequestRunner

All Known Implementing Classes:
DefaultRequestRunner

public interface RequestRunner

Processes requests.

Author:
SNI, Andrew Clark, Isuski

Method Summary
 void executeRequest(CachedSpiceRequest<?> request)
          Executes a request asynchronously.
 boolean isFailOnCacheError()
           
 void setFailOnCacheError(boolean failOnCacheError)
           
 void shouldStop()
          Will be called to notify implementations that no further request processing is needed anymore.
 

Method Detail

executeRequest

void executeRequest(CachedSpiceRequest<?> request)
Executes a request asynchronously.

Parameters:
request - the request to execute.

isFailOnCacheError

boolean isFailOnCacheError()
Returns:
whether or not the runner has to fail on cache errors.

setFailOnCacheError

void setFailOnCacheError(boolean failOnCacheError)
Parameters:
whether - or not the runner has to fail on cache errors.

shouldStop

void shouldStop()
Will be called to notify implementations that no further request processing is needed anymore. Use this method to clean up resources.



Copyright © 2012-2014. All Rights Reserved.