Package me.aartikov.replica.single
Types
Replica state that can be observed on a UI. In opposite to ReplicaState this class contains very limited set of fields.
Replica is a primitive for data replication. The replica's task is to represent some chunk of data from a server on a client side. Replica is configured by Fetcher and ReplicaSettings. Replica loads missing data when an active observer connects (see: Replica.observe). Replica keeps track of data staleness. Replica refreshes stale data when an active observer is connected. Replica deduplicates network requests (it doesn't coll a new request if another one is in progress). Replica cancels network request when a last observer is disconnected. Replica clears data when it has no observers for a long time.
Replica is a primitive for data replication. The replica's task is to represent some chunk of data from a server on a client side. Replica is configured by Fetcher and ReplicaSettings. Replica loads missing data when an active observer connects (see: Replica.observe). Replica keeps track of data staleness. Replica refreshes stale data when an active observer is connected. Replica deduplicates network requests (it doesn't coll a new request if another one is in progress). Replica cancels network request when a last observer is disconnected. Replica clears data when it has no observers for a long time.
Data stored in a replica.
Notifies that something happened in PhysicalReplica.
Replica observer connects to a replica and receives updates: state and loading error events. Replica observer can be active or inactive (this property is not exposed in the API but is used internally). Only active observer receives updates. Replica observer is associated with some User Interface - a screen or a part of screen.
Configures behaviour of a replica.
State of PhysicalReplica.
Allows PhysicalReplica to save data on a persistent storage.
Functions
Properties
Returns current ReplicaState.