Package net.sf.ehcache.store
Class DiskStoreBootstrapCacheLoader
- java.lang.Object
-
- net.sf.ehcache.store.MemoryLimitedCacheLoader
-
- net.sf.ehcache.store.DiskStoreBootstrapCacheLoader
-
- All Implemented Interfaces:
java.lang.Cloneable,BootstrapCacheLoader
public class DiskStoreBootstrapCacheLoader extends MemoryLimitedCacheLoader
- Author:
- Alex Snaps
-
-
Constructor Summary
Constructors Constructor Description DiskStoreBootstrapCacheLoader(boolean asynchronous)Constructor for loader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Clones the loaderprotected voiddoLoad(Ehcache cache)Performs bootstrap loading.booleanisAsynchronous()voidload(Ehcache cache)Instructs the loader to load the given cache-
Methods inherited from class net.sf.ehcache.store.MemoryLimitedCacheLoader
isInMemoryLimitReached
-
-
-
-
Method Detail
-
load
public void load(Ehcache cache) throws CacheException
Instructs the loader to load the given cache- Parameters:
cache- cache to load- Throws:
CacheException
-
doLoad
protected void doLoad(Ehcache cache)
Performs bootstrap loading. May be executed on a independent thread.
-
isAsynchronous
public boolean isAsynchronous()
- Returns:
- true if this bootstrap loader is asynchronous
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClones the loader- Specified by:
clonein interfaceBootstrapCacheLoader- Overrides:
clonein classMemoryLimitedCacheLoader- Returns:
- clone of this instance
- Throws:
java.lang.CloneNotSupportedException- if the object's class does not support theCloneableinterface.
-
-