| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isCachedNotFound(byte[][] values)
Returns true if this return value of getCachedValues indicates a
cached value of HANDLE_NOT_FOUND
|
void |
removeHandle(byte[] handle)
Remove one handle from the cache
|
void |
setCachedNotFound(byte[] handle,
int ttl)
Returns true if this handle should have a cached
HANDLE_NOT_FOUND.
|
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.
|
byte[][] getCachedValues(byte[] handle,
byte[][] reqTypes,
int[] reqIndexes)
throws java.lang.Exception
java.lang.Exceptionboolean isCachedNotFound(byte[][] values)
void setCachedValues(byte[] handle,
HandleValue[] newValues,
byte[][] newTypeList,
int[] newIndexList)
throws java.lang.Exception
java.lang.Exceptionvoid setCachedNotFound(byte[] handle,
int ttl)
throws java.lang.Exception
java.lang.Exceptionvoid setMaximumHandles(int maxHandles)
void setMaximumSize(int maxSize)
void removeHandle(byte[] handle)
throws java.lang.Exception
java.lang.Exceptionvoid clear()
throws java.lang.Exception
java.lang.Exceptionvoid close()
throws java.lang.Exception
java.lang.Exception