|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- queue item typepublic interface QueueStore<T>
QueueStore makes a queue backed by a central data store; such as database, disk, etc.
Method Summary | |
---|---|
void |
delete(Long key)
Deletes the entry with a given key from the store. |
void |
deleteAll(Collection<Long> keys)
Deletes multiple entries from the store. |
T |
load(Long key)
Loads the value of a given key. |
Map<Long,T> |
loadAll(Collection<Long> keys)
Loads the given keys. |
Set<Long> |
loadAllKeys()
Loads all of the keys from the store. |
void |
store(Long key,
T value)
Stores the key-value pair. |
void |
storeAll(Map<Long,T> map)
Stores multiple entries. |
Method Detail |
---|
void store(Long key, T value)
key
- key of the entry to storevalue
- value of the entry to storevoid storeAll(Map<Long,T> map)
map
- map of entries to storevoid delete(Long key)
key
- key to delete from the store.void deleteAll(Collection<Long> keys)
keys
- keys of the entries to delete.T load(Long key)
key
-
Map<Long,T> loadAll(Collection<Long> keys)
keys
- keys of the value entries to load
Set<Long> loadAllKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |