|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.cache.MemoryKey
public class MemoryKey
A key to use when searching the cache.
Field Summary | |
---|---|
protected NCache |
cache
|
protected int |
hashCode
|
Constructor Summary | |
---|---|
MemoryKey(java.lang.Object data)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object data)
Check if the given object is equal to the contained key. |
java.lang.Object |
getData()
Get the actual key object. |
java.lang.Object |
getData(NCache cache,
NCacheEntry entry)
Get the hooked data. |
protected java.lang.String |
getExtension()
|
long |
getId()
Get the unique id for this object. |
int |
hashCode()
Get the hashCode for the contained key object. |
protected java.lang.Object |
readHook(NCache cache,
NCacheEntry entry)
Read the hooked data. |
protected java.lang.Object |
readHook(java.lang.String name)
Read the hooked data. |
protected void |
setCache(NCache cache)
|
protected void |
storeHook(NCache cache,
NCacheEntry entry,
java.lang.Object hook)
Set the hooked data. |
protected void |
storeKey(NCache cache,
NCacheEntry entry,
java.lang.Object key)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int hashCode
protected transient NCache cache
Constructor Detail |
---|
public MemoryKey(java.lang.Object data)
Method Detail |
---|
public java.lang.Object getData()
protected java.lang.String getExtension()
protected void setCache(NCache cache)
protected void storeKey(NCache cache, NCacheEntry entry, java.lang.Object key)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object data)
equals
in class java.lang.Object
public long getId()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getData(NCache cache, NCacheEntry entry)
protected java.lang.Object readHook(NCache cache, NCacheEntry entry)
protected java.lang.Object readHook(java.lang.String name)
protected void storeHook(NCache cache, NCacheEntry entry, java.lang.Object hook)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |