Interface FDBRecordStoreStateCacheFactory
-
- All Known Implementing Classes:
MetaDataVersionStampStoreStateCacheFactory
,PassThroughRecordStoreStateCacheFactory
,ReadVersionRecordStoreStateCacheFactory
@API(EXPERIMENTAL) public interface FDBRecordStoreStateCacheFactory
A factory interface forFDBRecordStoreStateCache
s. This can be given to theFDBDatabaseFactory
singleton to ensure that eachFDBDatabase
is provided with its own cache instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FDBRecordStoreStateCache
getCache(FDBDatabase database)
Produce aFDBRecordStoreStateCache
.
-
-
-
Method Detail
-
getCache
@Nonnull FDBRecordStoreStateCache getCache(@Nonnull FDBDatabase database)
Produce aFDBRecordStoreStateCache
. Two instances produced by this factory should not share any common state as they should not be assumed to cache store information for record stores from the same database.- Parameters:
database
- the database that the produced cache will be used with- Returns:
- a
FDBRecordStoreStateCache
-
-