com.googlecode.hibernate.memcached
Class DigestKeyStrategy

java.lang.Object
  extended by com.googlecode.hibernate.memcached.AbstractKeyStrategy
      extended by com.googlecode.hibernate.memcached.DigestKeyStrategy
All Implemented Interfaces:
KeyStrategy
Direct Known Subclasses:
Md5KeyStrategy, Sha1KeyStrategy

public abstract class DigestKeyStrategy
extends AbstractKeyStrategy

Author:
Ray Krueger

Field Summary
 
Fields inherited from class com.googlecode.hibernate.memcached.AbstractKeyStrategy
log, MAX_KEY_LENGTH
 
Constructor Summary
DigestKeyStrategy()
           
 
Method Summary
protected  String concatenateKey(String regionName, long clearIndex, Object key)
           
protected abstract  String digest(String string)
           
protected  String transformKeyObject(Object key)
           
 
Methods inherited from class com.googlecode.hibernate.memcached.AbstractKeyStrategy
toKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigestKeyStrategy

public DigestKeyStrategy()
Method Detail

transformKeyObject

protected String transformKeyObject(Object key)
Specified by:
transformKeyObject in class AbstractKeyStrategy

concatenateKey

protected String concatenateKey(String regionName,
                                long clearIndex,
                                Object key)
Overrides:
concatenateKey in class AbstractKeyStrategy

digest

protected abstract String digest(String string)


Copyright © 2015. All rights reserved.