public final class CachedStoreFactory
extends java.lang.Object
Constructor and Description |
---|
CachedStoreFactory() |
Modifier and Type | Method and Description |
---|---|
static WritableCachedStore |
cacheWritesOnlyWritableCachedStore(WritableCachedStore.Manager mgr) |
static WritableCachedStore |
createDefaultWritableCachedStore(WritableCachedStore.Manager manager)
creates a WritableCachedStore implementation that uses soft keys and synchronous
cleanup for its read cache.
|
static TweakableCachedStore |
createNoCacheCachedStore(CachedStore.Manager mgr)
Always reads directly from manager, as if values are always dirty.
|
static WritableCachedStore |
createNoCacheWritableCachedStore(WritableCachedStore.Manager mgr)
Always reads directly from manager, as if values are always dirty.
|
static TweakableCachedStore |
createNoCleanupCachedStore(CachedStore.Manager manager) |
static TweakableCachedStore |
createSoftValueCachedStore(CachedStore.Manager manager)
Better to use createSynchronousCleanupSoftKeyCachedStore to prevent the build of
cleaned SoftReferences, unless the universe of potential cacheables is small.
|
static TweakableCachedStore |
createSynchronousCleanupSoftKeyCachedStore(CachedStore.Manager manager) |
public static TweakableCachedStore createNoCleanupCachedStore(CachedStore.Manager manager)
public static TweakableCachedStore createSoftValueCachedStore(CachedStore.Manager manager)
public static TweakableCachedStore createSynchronousCleanupSoftKeyCachedStore(CachedStore.Manager manager)
public static TweakableCachedStore createNoCacheCachedStore(CachedStore.Manager mgr)
public static WritableCachedStore createDefaultWritableCachedStore(WritableCachedStore.Manager manager)
public static WritableCachedStore cacheWritesOnlyWritableCachedStore(WritableCachedStore.Manager mgr)
public static WritableCachedStore createNoCacheWritableCachedStore(WritableCachedStore.Manager mgr)
Autoflushing