|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.handle.hdllib.MemCache
public class MemCache
Class used to cache values in a local database file.
| Constructor Summary | |
|---|---|
MemCache()
|
|
MemCache(int maxHandles,
long maxTTL)
|
|
MemCache(long maxTTL)
|
|
| Method Summary | |
|---|---|
void |
clear()
Remove all values from the cache |
void |
close()
|
byte[][] |
getCachedValues(byte[] handle,
byte[][] reqTypes,
int[] reqIndexes)
Returns any non-expired handle values that are in the caches storage. |
void |
setCachedValues(byte[] handle,
HandleValue[] newValues,
byte[][] newTypeList,
int[] newIndexList)
Store the given handle values after a query for the handle. |
void |
setMaximumHandles(int maxHandles)
Set the maximum size for the cache by the number of handles. |
void |
setMaximumSize(int maxSize)
Set the maximum size for the cache by the number of bytes used for storage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemCache(int maxHandles,
long maxTTL)
public MemCache(long maxTTL)
public MemCache()
| Method Detail |
|---|
public byte[][] getCachedValues(byte[] handle,
byte[][] reqTypes,
int[] reqIndexes)
throws java.lang.Exception
getCachedValues in interface Cachejava.lang.Exception
public void setCachedValues(byte[] handle,
HandleValue[] newValues,
byte[][] newTypeList,
int[] newIndexList)
throws java.lang.Exception
setCachedValues in interface Cachejava.lang.Exception
public void clear()
throws java.lang.Exception
clear in interface Cachejava.lang.Exceptionpublic void setMaximumHandles(int maxHandles)
setMaximumHandles in interface Cachepublic void setMaximumSize(int maxSize)
setMaximumSize in interface Cache
public void close()
throws java.lang.Exception
close in interface Cachejava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||