SatelliteProcess constructor
SatelliteProcess({
- required DbName dbName,
- required Client client,
- required SatelliteOpts opts,
- required DatabaseAdapter adapter,
- required Migrator migrator,
- required Notifier notifier,
Implementation
SatelliteProcess({
required this.dbName,
required this.client,
required this.opts,
required DatabaseAdapter adapter,
required this.migrator,
required this.notifier,
}) : _adapter = adapter,
builder = migrator.queryBuilder {
subscriptionManager = ShapeManager(
onShapeSyncStatusUpdated: (key, status) =>
notifier.shapeSubscriptionSyncStatusChanged(dbName, key, status),
);
throttledSnapshot = Throttle(
mutexSnapshot,
opts.minSnapshotWindow,
);
connectRetryHandler = defaultConnectRetryHandler;
}