|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Object to be cached.public interface ObjectCache<T>
ObjectCache
Method Summary | |
---|---|
void |
clear()
Clears this object cache by removing all the persisted data permanently. |
boolean |
delete(int objectId,
long scn)
Deletes an object based on a user-specified object Id. |
T |
get(int objectId)
Gets an object based on a user-specified object Id. |
byte[] |
getBytes(int objectId)
Gets an object in raw bytes based on a user-specified object Id. |
int |
getObjectIdCount()
|
int |
getObjectIdStart()
|
void |
persist()
Persists this object cache. |
boolean |
set(int objectId,
T object,
long scn)
Sets an object at a user-specified object Id. |
Methods inherited from interface krati.Persistable |
---|
getHWMark, getLWMark, saveHWMark, sync |
Method Detail |
---|
int getObjectIdCount()
int getObjectIdStart()
T get(int objectId)
objectId
- the Id of an object to be retrieved from the cache.
byte[] getBytes(int objectId)
objectId
- the Id of an object to be retrieved from the cache.
boolean set(int objectId, T object, long scn) throws Exception
objectId
- the object Id.object
- the object to put into the cache.scn
- the global scn (equivalent to a time stamp).
Exception
boolean delete(int objectId, long scn) throws Exception
objectId
- the object Id.scn
- the global scn (equivalent to a time stamp).
Exception
void persist() throws IOException
persist
in interface Persistable
IOException
void clear() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |