| Constructor and Description |
|---|
JDBCache(java.io.File cacheDBFile)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Remove all values from the cache
|
void |
close()
Deprecated.
|
byte[][] |
getCachedValues(byte[] handle,
byte[][] reqTypes,
int[] reqIndexes)
Deprecated.
Returns any non-expired handle values that are in the caches
storage.
|
boolean |
isCachedNotFound(byte[][] values)
Deprecated.
Returns true if this return value of getCachedValues indicates a
cached value of HANDLE_NOT_FOUND
|
void |
removeHandle(byte[] handle)
Deprecated.
Remove one handle from the cache
|
void |
setCachedNotFound(byte[] handle,
int ttl)
Deprecated.
Returns true if this handle should have a cached
HANDLE_NOT_FOUND.
|
void |
setCachedValues(byte[] handle,
HandleValue[] newValues,
byte[][] newTypeList,
int[] newIndexList)
Deprecated.
Store the given handle values after a query for the handle.
|
void |
setMaximumHandles(int maxHandles)
Deprecated.
Set the maximum size for the cache by the number of handles.
|
void |
setMaximumSize(int maxSize)
Deprecated.
Set the maximum size for the cache by the number of bytes
used for storage.
|
public JDBCache(java.io.File cacheDBFile)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isCachedNotFound(byte[][] values)
CacheisCachedNotFound in interface Cachepublic byte[][] getCachedValues(byte[] handle,
byte[][] reqTypes,
int[] reqIndexes)
throws java.lang.Exception
getCachedValues in interface Cachejava.lang.Exceptionpublic void setCachedNotFound(byte[] handle,
int ttl)
throws java.lang.Exception
CachesetCachedNotFound in interface Cachejava.lang.Exceptionpublic void removeHandle(byte[] handle)
throws java.lang.Exception
CacheremoveHandle in interface Cachejava.lang.Exceptionpublic void setCachedValues(byte[] handle,
HandleValue[] newValues,
byte[][] newTypeList,
int[] newIndexList)
throws java.lang.Exception
setCachedValues in interface Cachejava.lang.Exceptionpublic void setMaximumHandles(int maxHandles)
setMaximumHandles in interface Cachepublic void setMaximumSize(int maxSize)
setMaximumSize in interface Cachepublic void clear()
throws java.lang.Exception