Liferay 6.1.2-ce-ga3

com.liferay.portal.cache.key
Class JavaMD5CacheKeyGenerator

java.lang.Object
  extended by com.liferay.portal.cache.key.BaseCacheKeyGenerator
      extended by com.liferay.portal.cache.key.JavaMD5CacheKeyGenerator
All Implemented Interfaces:
CacheKeyGenerator, Cloneable

public class JavaMD5CacheKeyGenerator
extends BaseCacheKeyGenerator


Field Summary
 
Fields inherited from class com.liferay.portal.cache.key.BaseCacheKeyGenerator
keyBundler
 
Constructor Summary
JavaMD5CacheKeyGenerator()
           
JavaMD5CacheKeyGenerator(int maxLength)
           
 
Method Summary
 CacheKeyGenerator clone()
           
protected  String encodeCacheKey(byte[] bytes)
           
 String getCacheKey(String key)
           
 String getCacheKey(String[] keys)
           
 String getCacheKey(StringBundler sb)
           
 boolean isCallingGetCacheKeyThreadSafe()
           
 void setMaxLength(int maxLength)
           
 
Methods inherited from class com.liferay.portal.cache.key.BaseCacheKeyGenerator
append, append, append, finish
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMD5CacheKeyGenerator

public JavaMD5CacheKeyGenerator()
                         throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

JavaMD5CacheKeyGenerator

public JavaMD5CacheKeyGenerator(int maxLength)
                         throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException
Method Detail

clone

public CacheKeyGenerator clone()
Specified by:
clone in interface CacheKeyGenerator
Specified by:
clone in class BaseCacheKeyGenerator

getCacheKey

public String getCacheKey(String key)

getCacheKey

public String getCacheKey(String[] keys)

getCacheKey

public String getCacheKey(StringBundler sb)

isCallingGetCacheKeyThreadSafe

public boolean isCallingGetCacheKeyThreadSafe()
Specified by:
isCallingGetCacheKeyThreadSafe in interface CacheKeyGenerator
Overrides:
isCallingGetCacheKeyThreadSafe in class BaseCacheKeyGenerator

setMaxLength

public void setMaxLength(int maxLength)

encodeCacheKey

protected String encodeCacheKey(byte[] bytes)

Liferay 6.1.2-ce-ga3