|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.loaders.AbstractCacheLoader
org.infinispan.loaders.AbstractCacheStore
org.infinispan.loaders.jdbm.JdbmCacheStore
@ThreadSafe public class JdbmCacheStore
A persistent CacheLoader based on the JDBM project. See http://jdbm.sourceforge.net/ . Does not support
transaction isolation.
| Field Summary |
|---|
| Fields inherited from class org.infinispan.loaders.AbstractCacheStore |
|---|
cache, marshaller, multiThreadedPurge, purgerService |
| Constructor Summary | |
|---|---|
JdbmCacheStore()
|
|
| Method Summary | |
|---|---|
protected void |
applyModifications(List<? extends Modification> mods)
|
void |
clear()
Clears all entries in the store |
void |
fromStream(ObjectInput in)
Reads from a stream the number of entries (long) then the entries themselves. |
Class<? extends CacheLoaderConfig> |
getConfigurationClass()
|
void |
init(CacheLoaderConfig clc,
Cache cache,
Marshaller m)
Used to initialize a cache loader. |
InternalCacheEntry |
load(Object key)
Loads an entry mapped to by a given key. |
Set<InternalCacheEntry> |
loadAll()
Loads all entries in the loader. |
protected void |
purgeInternal()
Purge expired entries. |
boolean |
remove(Object key)
Removes an entry in the store. |
boolean |
remove0(Object key)
|
void |
start()
|
void |
stop()
Closes all databases, ignoring exceptions, and nulls references to all database related information. |
void |
store(InternalCacheEntry entry)
Stores an entry |
void |
toStream(ObjectOutput out)
Writes to a stream the number of entries (long) then the entries themselves. |
String |
toString()
|
| Methods inherited from class org.infinispan.loaders.AbstractCacheStore |
|---|
commit, getCacheStoreConfig, getConcurrencyLevel, getMarshaller, prepare, purgeExpired, removeAll, rollback, safeClose, safeClose, supportsMultiThreadedPurge |
| Methods inherited from class org.infinispan.loaders.AbstractCacheLoader |
|---|
containsKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.infinispan.loaders.CacheLoader |
|---|
containsKey |
| Constructor Detail |
|---|
public JdbmCacheStore()
| Method Detail |
|---|
public Class<? extends CacheLoaderConfig> getConfigurationClass()
CacheLoaderConfig bean used to configure this
implementation of CacheLoader
public void init(CacheLoaderConfig clc,
Cache cache,
Marshaller m)
throws CacheLoaderException
CacheLoaderCacheLoaderManager
when setting up cache loaders.
init in interface CacheLoaderinit in class AbstractCacheStoreclc - the cache loader configuration beancache - cache associated with this cache loader. Implementations may use this to determine cache name when
selecting where refer to state in storage, for example, a different database table name.m - marshaller to use when loading state from a stream, if supported by the implementation.
CacheLoaderException
public void start()
throws CacheLoaderException
start in interface CacheLoaderstart in class AbstractCacheStoreCacheLoaderException
public InternalCacheEntry load(Object key)
throws CacheLoaderException
CacheLoader
key - key
CacheLoaderException - in the event of problems reading from source
public Set<InternalCacheEntry> loadAll()
throws CacheLoaderException
CacheLoader
CacheLoaderException - in the event of problems reading from sourcepublic void stop()
stop in interface CacheLoaderstop in class AbstractCacheStore
public void clear()
throws CacheLoaderException
CacheStore
CacheLoaderException - in the event of problems writing to the store
public boolean remove(Object key)
throws CacheLoaderException
CacheStore
key - key to remove
CacheLoaderException - in the event of problems writing to the store
public boolean remove0(Object key)
throws CacheLoaderException
CacheLoaderException
public void store(InternalCacheEntry entry)
throws CacheLoaderException
CacheStore
entry - entry to store
CacheLoaderException - in the event of problems writing to the store
public void toStream(ObjectOutput out)
throws CacheLoaderException
out - stream to write to
CacheLoaderException - in the event of problems reading from the store
public void fromStream(ObjectInput in)
throws CacheLoaderException
in - stream to read from
CacheLoaderException - in the event of problems writing to the store
protected void purgeInternal()
throws CacheLoaderException
purgeInternal in class AbstractCacheStoreCacheLoaderException
protected void applyModifications(List<? extends Modification> mods)
throws CacheLoaderException
applyModifications in class AbstractCacheStoreCacheLoaderExceptionpublic String toString()
toString in class Object
|
Google Analytics | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||