public class DiskStoreBootstrapCacheLoader extends MemoryLimitedCacheLoader
Modifier and Type | Class and Description |
---|---|
private class |
DiskStoreBootstrapCacheLoader.BootstrapThread
A background daemon thread that asynchronously calls doLoad
|
Modifier and Type | Field and Description |
---|---|
private boolean |
asynchronous |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DiskStoreBootstrapCacheLoader(boolean asynchronous)
Constructor for loader
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones the loader
|
protected void |
doLoad(Ehcache cache)
Performs bootstrap loading.
|
boolean |
isAsynchronous() |
void |
load(Ehcache cache)
Instructs the loader to load the given cache
|
isInMemoryLimitReached
private static final org.slf4j.Logger LOG
private final boolean asynchronous
public DiskStoreBootstrapCacheLoader(boolean asynchronous)
asynchronous
- whether load is asynchronous or synchronouspublic void load(Ehcache cache) throws CacheException
CacheException
protected void doLoad(Ehcache cache)
public boolean isAsynchronous()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface BootstrapCacheLoader
clone
in class MemoryLimitedCacheLoader
java.lang.CloneNotSupportedException