File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
src/main/java/com/google/firebase/firestore Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -316,11 +316,34 @@ package com.google.firebase.firestore {
316316 }
317317
318318 public final class MemoryCacheSettings implements com.google.firebase.firestore.LocalCacheSettings {
319+ method @NonNull public com.google.firebase.firestore.MemoryGarbageCollectorSettings getGarbageCollectorSettings();
319320 method @NonNull public static com.google.firebase.firestore.MemoryCacheSettings.Builder newBuilder();
320321 }
321322
322323 public static class MemoryCacheSettings.Builder {
323324 method @NonNull public com.google.firebase.firestore.MemoryCacheSettings build();
325+ method @NonNull public com.google.firebase.firestore.MemoryCacheSettings.Builder setGcSettings(@NonNull com.google.firebase.firestore.MemoryGarbageCollectorSettings);
326+ }
327+
328+ public final class MemoryEagerGcSettings implements com.google.firebase.firestore.MemoryGarbageCollectorSettings {
329+ method @NonNull public static com.google.firebase.firestore.MemoryEagerGcSettings.Builder newBuilder();
330+ }
331+
332+ public static class MemoryEagerGcSettings.Builder {
333+ method @NonNull public com.google.firebase.firestore.MemoryEagerGcSettings build();
334+ }
335+
336+ public interface MemoryGarbageCollectorSettings {
337+ }
338+
339+ public final class MemoryLruGcSettings implements com.google.firebase.firestore.MemoryGarbageCollectorSettings {
340+ method public long getSizeBytes();
341+ method @NonNull public static com.google.firebase.firestore.MemoryLruGcSettings.Builder newBuilder();
342+ }
343+
344+ public static class MemoryLruGcSettings.Builder {
345+ method @NonNull public com.google.firebase.firestore.MemoryLruGcSettings build();
346+ method public void setSizeBytes(long);
324347 }
325348
326349 public enum MetadataChanges {
Original file line number Diff line number Diff line change 1+ // Copyright 2023 Google LLC
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+
115package com .google .firebase .firestore ;
216
317import androidx .annotation .NonNull ;
You can’t perform that action at this time.
0 commit comments