MemoryEagerGcSettings

public final class MemoryEagerGcSettings implements MemoryGarbageCollectorSettings


Configures the SDK to use an eager garbage collector for memory cache. The eager garbage collector will attempt to remove any documents from SDK's memory cache as soon as it is no longer used.

This is the default garbage collector unless specified explicitly otherwise.

To use, create an instance using MemoryEagerGcSettings#newBuilder().build(), then set the instance to MemoryCacheSettings.Builder#setGcSettings, and use the built MemoryCacheSettings instance to configure the Firestore SDK.

Summary

Nested types

Public methods

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()

newBuilder

public static @NonNull MemoryEagerGcSettings.Builder newBuilder()

toString

public @NonNull String toString()