The server side of one synced resource, implemented per feature.
The adapter is the only place that knows the wire format: it maps the feature's DTOs to RemoteRecords and translates transport errors into the engine's vocabulary — returning a PushResult for outcomes the engine acts on (conflict, gone, superseded) and throwing SyncTransientException / SyncTerminalException for retryable / non-retryable failures.
Properties
Methods
-
beforePush(
T row) → Future< void> -
Optional pre-push step, e.g. upload local media and persist the resulting
URLs back onto
rowbefore it is sent. Defaults to a no-op. -
create(
T row) → Future< PushResult< T> > -
POSTs a locally-created
row. -
delete(
T row) → Future< PushResult< T> > -
DELETEs a locally-tombstoned
row, echoing its base revision. -
listSince(
int cursor) → Future< List< RemoteRecord< >T> > -
Fetches every server change (including tombstones) with a revision greater
than
cursor, as RemoteRecords. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
T row) → Future< PushResult< T> > -
PUTs a locally-edited
row, echoing its base revision for conflict detection.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited