-
public final class FlushWorkerWatches for connectivity changes and flushes any cached requests using the provided networkExecutor.
-
-
Constructor Summary
Constructors Constructor Description FlushWorker(Context context, SuspendFunction3<String, String, String, String> networkExecutor)
-
Method Summary
Modifier and Type Method Description final Unitstart()Start listening and attempt an immediate flush on init. final Unitstop()Stop the periodic flush timer. final UnitcacheRequest(CachedRequest req)Append a failed request to disk. -
-
Method Detail
-
cacheRequest
final Unit cacheRequest(CachedRequest req)
Append a failed request to disk.
-
-
-
-