Class PassThroughRecordStoreStateCacheFactory
- java.lang.Object
-
- com.apple.foundationdb.record.provider.foundationdb.storestate.PassThroughRecordStoreStateCacheFactory
-
- All Implemented Interfaces:
FDBRecordStoreStateCacheFactory
@API(EXPERIMENTAL) public class PassThroughRecordStoreStateCacheFactory extends Object implements FDBRecordStoreStateCacheFactory
A factory for creatingPassThroughRecordStoreStateCache
s. That class is a singleton, but it is useful to have a factory nonetheless so that one can be provided to theFDBDatabaseFactory
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PassThroughRecordStoreStateCache
getCache(FDBDatabase database)
Produce aFDBRecordStoreStateCache
.static PassThroughRecordStoreStateCacheFactory
instance()
Get the factory singleton.
-
-
-
Method Detail
-
getCache
@Nonnull public PassThroughRecordStoreStateCache getCache(@Nonnull FDBDatabase database)
Description copied from interface:FDBRecordStoreStateCacheFactory
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.- Specified by:
getCache
in interfaceFDBRecordStoreStateCacheFactory
- Parameters:
database
- the database that the produced cache will be used with- Returns:
- a
FDBRecordStoreStateCache
-
instance
@Nonnull public static PassThroughRecordStoreStateCacheFactory instance()
Get the factory singleton. Note that neither this factory nor thePassThroughRecordStoreStateCache
that it produces have any state.- Returns:
- the factory's singleton
-
-