Top Inners Fields Constructors Methods
net.sf.ehcache.store

public Class DiskStoreBootstrapCacheLoader

extends MemoryLimitedCacheLoader
Class Inheritance
Imports
net.sf.ehcache.CacheException, .Ehcache, net.sf.ehcache.distribution.RemoteCacheException, org.slf4j.Logger, .LoggerFactory, java.util.Iterator

Author
Alex Snaps

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
DiskStoreBootstrapCacheLoader.BootstrapThread

A background daemon thread that asynchronously calls doLoad

Field Summary

Modifier and TypeField and Description
private final boolean
private static final Logger

Constructor Summary

AccessConstructor and Description
public
DiskStoreBootstrapCacheLoader(final boolean
whether load is asynchronous or synchronous
asynchronous
)

Constructor for loader

Method Summary

Modifier and TypeMethod and Description
public Object
protected void
doLoad(Ehcache cache)

Performs bootstrap loading.

public boolean
public void
load(final Ehcache
cache to load
cache
)

Implements net.sf.ehcache.bootstrap.BootstrapCacheLoader.load.

Instructs the loader to load the given cache
Inherited from net.sf.ehcache.store.MemoryLimitedCacheLoader:
isInMemoryLimitReached

Field Detail

asynchronousback to summary
private final boolean asynchronous
LOGback to summary
private static final Logger LOG

Constructor Detail

DiskStoreBootstrapCacheLoaderback to summary
public DiskStoreBootstrapCacheLoader(final boolean asynchronous)

Constructor for loader

Parameters
asynchronous:boolean

whether load is asynchronous or synchronous

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides net.sf.ehcache.store.MemoryLimitedCacheLoader.clone.

Implements net.sf.ehcache.bootstrap.BootstrapCacheLoader.clone.

Doc from net.sf.ehcache.store.MemoryLimitedCacheLoader.clone.

Clones the loader

Returns:Object

Doc from net.sf.ehcache.bootstrap.BootstrapCacheLoader.clone.

clone of this instance

Annotations
@Override
Exceptions
CloneNotSupportedException:

Doc from net.sf.ehcache.bootstrap.BootstrapCacheLoader.clone.

if the object's class does not support the Cloneable interface.

doLoadback to summary
protected void doLoad(Ehcache cache)

Performs bootstrap loading. May be executed on a independent thread.

isAsynchronousback to summary
public boolean isAsynchronous()

Implements net.sf.ehcache.bootstrap.BootstrapCacheLoader.isAsynchronous.

Returns:boolean

Doc from net.sf.ehcache.bootstrap.BootstrapCacheLoader.isAsynchronous.

true if this bootstrap loader is asynchronous

loadback to summary
public void load(final Ehcache cache) throws CacheException

Implements net.sf.ehcache.bootstrap.BootstrapCacheLoader.load.

Doc from net.sf.ehcache.bootstrap.BootstrapCacheLoader.load.

Instructs the loader to load the given cache

Parameters
cache:Ehcache

cache to load

net.sf.ehcache.store back to summary

private final Class DiskStoreBootstrapCacheLoader.BootstrapThread

extends Thread
Class Inheritance

A background daemon thread that asynchronously calls doLoad

Field Summary

Modifier and TypeField and Description
private final Ehcache
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.
Inherited from java.lang.Thread:
activeCountcheckAccessclonecountStackFramescurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitresumesetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadstopsuspendthreadIdtoStringyield

Field Detail

cacheback to summary
private final Ehcache cache

Constructor Detail

BootstrapThreadback to summary
public BootstrapThread(Ehcache cache)

Method Detail

runback to summary
public final void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.

Annotations
@Override