ResourceRefresher
A utility class to repeatedly fetch some resource
The ResourceRefresher.Parameters can be used to configure where to fetch the resource from and how often, as well as some cooldown behaviour in the event of any failures.
Types
Parameters explicitly relating to the behavior of the ResourceRefresher.
Properties
The ResourceCache for storing the results and possible etags in.
An observable stream of exceptions that occur when fetching or reading/writing from storage.
An observable stream of valid resources.
Returns whether or not this resource should be refreshed according to all relevant timeouts and error cooldowns.
Functions
Requests that a new refresh of the resource take place. No validation is done on the object that is retrieved.
Requests that a new refresh of the resource take place. The resulting object is passed to the isValid predicate to determine whether or not this should be considered a successful retrieval.
Updates the refresh interval for this resource.