SyncRemoteAdapter<T extends Syncable> class abstract interface

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

hashCode int
The hash code for this object.
no setterinherited
resource String
A stable key naming this resource (e.g. 'bookmarks'), used for the delta cursor.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beforePush(T row) Future<void>
Optional pre-push step, e.g. upload local media and persist the resulting URLs back onto row before 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