|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataSourceCallback<VALUE_TYPE>
| Method Summary | |
|---|---|
boolean |
exists(long key)
Check if the key exists |
VALUE_TYPE |
fetch(long key)
Fetch the value associated with the given key. |
long |
save(VALUE_TYPE value)
Saves the given value to the backing datastore and returns a unique key to reference this value. |
| Method Detail |
|---|
long save(VALUE_TYPE value)
value -
VALUE_TYPE fetch(long key)
throws KeyNotFoundException
key -
KeyNotFoundException - if key does not exist.boolean exists(long key)
key -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||