public < T > void execute ( final CachedSpiceRequest < T > cachedSpiceRequest , final RequestListener < T > requestListener ) { addRequestListenerToListOfRequestListeners ( cachedSpiceRequest , requestListener ) ; Ln . d ( "adding request to request queue" ) ; this . requestQueue . add ( cachedSpiceRequest ) ; }
Execute a request put the result in cache and register listeners to notify when request is finished .