ehcache

net.sf.ehcache.store
Class DiskStoreBootstrapCacheLoader

java.lang.Object
  extended by net.sf.ehcache.store.MemoryLimitedCacheLoader
      extended by net.sf.ehcache.store.DiskStoreBootstrapCacheLoader
All Implemented Interfaces:
Cloneable, BootstrapCacheLoader

public class DiskStoreBootstrapCacheLoader
extends MemoryLimitedCacheLoader

Author:
Alex Snaps

Constructor Summary
DiskStoreBootstrapCacheLoader(boolean asynchronous)
          Constructor for loader
 
Method Summary
 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
 
Methods inherited from class net.sf.ehcache.store.MemoryLimitedCacheLoader
isInMemoryLimitReached
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskStoreBootstrapCacheLoader

public DiskStoreBootstrapCacheLoader(boolean asynchronous)
Constructor for loader

Parameters:
asynchronous - whether load is asynchronous or synchronous
Method Detail

load

public void load(Ehcache cache)
          throws CacheException
Instructs the loader to load the given cache

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 Object clone()
             throws CloneNotSupportedException
Clones the loader

Specified by:
clone in interface BootstrapCacheLoader
Overrides:
clone in class MemoryLimitedCacheLoader
Throws:
CloneNotSupportedException

ehcache

Copyright 2001-2016, Terracotta, Inc.