T
- queue item typepublic interface QueueStore<T>
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Implementation can use any means of loading the given key; such as an O/R mapping tool, simple SQL, reading a file, etc.
key
- the key of the requested valueMap<Long,T> loadAll(Collection<Long> keys)
Set the bulk-load property to configure batch loading. When the queue is initialized, items are loaded from QueueStore in bulks. Bulk load is the size of these bulks. The default value of bulk-load is 250.
keys
- keys of the value entries to loadCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.