SwiftclassSessionSyncEngine

class SessionSyncEngine.MetadataStore

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 27

  1. deinitdeinit
  2. fieldlet deviceObsoletionDuration: Double+0x10
  3. fieldvar initialSyncPairedDeviceIdentifiers: Set<String>+0x38
  4. fieldlet maximumUnsyncedRecordCount: Int+0x20
  5. fieldvar recordIDSyncDatesByPairedDeviceIdentifier: [String : [SessionSyncEngine.RecordID : Foundation.Date]]+0x30
  6. fieldvar recordMetadataByRecordID: [SessionSyncEngine.RecordID : SessionSyncEngine.RecordMetadata]+0x28
  7. fieldlet tombstoneObsoletionDuration: Double+0x18
  8. funcdeletedRecordIDs(for: String) -> [SessionSyncEngine.RecordID]
  9. funcforget(recordID: SessionSyncEngine.RecordID) -> ()
  10. funcgarbageCollect() -> ()
  11. funchasMetadata(for: String) -> Bool
  12. funchasPerformedInitialSync(for: String) -> Bool
  13. funcisValid(at: Foundation.Date) -> Bool
  14. funcmodifiedRecordIDs(for: String) -> [SessionSyncEngine.RecordID]
  15. funcpurge() -> ()
  16. funcrecordIDs(minus: [SessionSyncEngine.RecordID]) -> [SessionSyncEngine.RecordID]
  17. funcrecordMetadata(for: SessionSyncEngine.RecordID) -> SessionSyncEngine.RecordMetadata?
  18. funcremove(pairedDeviceIdentifier: String) -> ()
  19. funcset(deletedDate: Foundation.Date, for: [SessionSyncEngine.RecordID]) -> ()
  20. funcset(lastModifiedDate: Foundation.Date, for: [SessionSyncEngine.RecordID]) -> ()
  21. funcset(syncDate: Foundation.Date, forRecordsMatching: [SessionSyncEngine.RecordMetadata], pairedDeviceIdentifier: String) -> ()
  22. funcset(syncDate: Foundation.Date, for: [SessionSyncEngine.RecordID], pairedDeviceIdentifier: String) -> ()
  23. funcsetPerformedInitialSync(for: String) -> ()
  24. funcunknownRecordIDs(in: [SessionSyncEngine.RecordID]) -> [SessionSyncEngine.RecordID]
  25. funcupdate(metadata: [SessionSyncEngine.RecordMetadata]) -> ()
  26. initSessionSyncEngine.MetadataStore.__allocating_init(persistentStore: SessionSyncEngine.MetadataPersisting) -> SessionSyncEngine.MetadataStore
  27. initSessionSyncEngine.MetadataStore.__allocating_init(deviceObsoletionDuration: Double, tombstoneObsoletionDuration: Double, maximumUnsyncedRecordCount: Int, persistentStore: SessionSyncEngine.MetadataPersisting?) -> SessionSyncEngine.MetadataStore
class MetadataStore {
    let deviceObsoletionDuration: Swift.Double
    let tombstoneObsoletionDuration: Swift.Double
    let maximumUnsyncedRecordCount: Swift.Int
    var recordMetadataByRecordID: [SessionSyncEngine.RecordID : SessionSyncEngine.RecordMetadata]
    var recordIDSyncDatesByPairedDeviceIdentifier: [Swift.String : [SessionSyncEngine.RecordID : Foundation.Date]]
    var initialSyncPairedDeviceIdentifiers: Swift.Set<Swift.String>

    init(deviceObsoletionDuration: Swift.Double, tombstoneObsoletionDuration: Swift.Double, maximumUnsyncedRecordCount: Swift.Int, persistentStore: (any SessionSyncEngine.MetadataPersisting)?)

    init(persistentStore: any SessionSyncEngine.MetadataPersisting)

    final func hasPerformedInitialSync(for: Swift.String) -> Swift.Bool
    final func setPerformedInitialSync(for: Swift.String)
    final func hasMetadata(for: Swift.String) -> Swift.Bool
    final func recordMetadata(for: SessionSyncEngine.RecordID) -> SessionSyncEngine.RecordMetadata?
    final func garbageCollect()
    final func deletedRecordIDs(for: Swift.String) -> [SessionSyncEngine.RecordID]
    final func unknownRecordIDs(in: [SessionSyncEngine.RecordID]) -> [SessionSyncEngine.RecordID]
    final func modifiedRecordIDs(for: Swift.String) -> [SessionSyncEngine.RecordID]
    final func set(deletedDate: Foundation.Date, for: [SessionSyncEngine.RecordID])
    final func set(lastModifiedDate: Foundation.Date, for: [SessionSyncEngine.RecordID])
    final func set(syncDate: Foundation.Date, forRecordsMatching: [SessionSyncEngine.RecordMetadata], pairedDeviceIdentifier: Swift.String)
    final func set(syncDate: Foundation.Date, for: [SessionSyncEngine.RecordID], pairedDeviceIdentifier: Swift.String)
    final func purge()
    final func forget(recordID: SessionSyncEngine.RecordID)
    final func remove(pairedDeviceIdentifier: Swift.String)
    final func update(metadata: [SessionSyncEngine.RecordMetadata])
    final func isValid(at: Foundation.Date) -> Swift.Bool
    final func recordIDs(minus: [SessionSyncEngine.RecordID]) -> [SessionSyncEngine.RecordID]

    deinit
}