You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Parameters used to control the garbage collection of tombstoned objects and map entries, as described in RTO10.
29
+
internalstructGarbageCollectionOptions{
30
+
/// The RTO10a interval at which we will perform garbage collection.
31
+
///
32
+
/// The default value comes from the suggestion in RTO10a.
33
+
internalvarinterval:TimeInterval=5*60
34
+
35
+
/// The initial RTO10b grace period for which we will retain tombstoned objects and map entries. This value may later get overridden by the `gcGracePeriod` of a `CONNECTED` `ProtocolMessage` from Realtime.
36
+
///
37
+
/// This default value comes from RTO10b3; can be overridden for testing.
38
+
internalvargracePeriod:TimeInterval=24*60*60
39
+
}
40
+
21
41
internalvartestsOnly_objectsPool:ObjectsPool{
22
42
mutex.withLock{
23
43
mutableState.objectsPool
@@ -71,14 +91,38 @@ internal final class InternalDefaultRealtimeObjects: Sendable, LiveMapObjectPool
// TODO: this one is unclear (are we meant to replace the root or just clear its data?) https://github.com/ably/specification/pull/333/files#r2183493458. I believe that the answer is that we should just clear its data but the spec point needs to be clearer, see https://github.com/ably/specification/pull/346/files#r2201434895.
400
409
root.resetData()
401
410
}
411
+
412
+
/// Performs garbage collection of tombstoned objects and map entries, per RTO10c.
0 commit comments