com.opensymphony.oscache.plugins.diskpersistence
Class DiskPersistenceListener

java.lang.Object
  extended by com.opensymphony.oscache.plugins.diskpersistence.AbstractDiskPersistenceListener
      extended by com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener
All Implemented Interfaces:
PersistenceListener, Serializable

public class DiskPersistenceListener
extends AbstractDiskPersistenceListener

Persist the cache data to disk. The code in this class is totally not thread safe it is the resonsibility of the cache using this persistence listener to handle the concurrency.

Version:
$Revision: 254 $
Author:
Francois Beauregard, Alain Bergevin, Chris Miller
See Also:
Serialized Form

Field Summary
private static String CHARS_TO_CONVERT
           
 
Fields inherited from class com.opensymphony.oscache.plugins.diskpersistence.AbstractDiskPersistenceListener
APPLICATION_CACHE_SUBPATH, CACHE_EXTENSION, CACHE_PATH_KEY, CONTEXT_TMPDIR, GROUP_DIRECTORY, SESSION_CACHE_SUBPATH
 
Constructor Summary
DiskPersistenceListener()
           
 
Method Summary
protected  char[] getCacheFileName(String key)
          Build cache file name for the specified cache entry key.
 
Methods inherited from class com.opensymphony.oscache.plugins.diskpersistence.AbstractDiskPersistenceListener
adjustFileCachePath, clear, configure, getCacheFile, getCachePath, getContextTmpDir, getRoot, initFileCaching, isGroupStored, isStored, remove, remove, removeGroup, retrieve, retrieveGroup, store, store, storeGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHARS_TO_CONVERT

private static final String CHARS_TO_CONVERT
See Also:
Constant Field Values
Constructor Detail

DiskPersistenceListener

public DiskPersistenceListener()
Method Detail

getCacheFileName

protected char[] getCacheFileName(String key)
Build cache file name for the specified cache entry key.

Specified by:
getCacheFileName in class AbstractDiskPersistenceListener
Parameters:
key - Cache Entry Key.
Returns:
char[] file name.


Copyright © 2011 OpenSymphony. All Rights Reserved.