public interface PersistenceService
Modifier and Type | Method and Description |
---|---|
void |
delete(String key,
Collection<String> idsToRemove)
Deletes all the values of the given key and ids
|
void |
deleteAll(String key)
Deletes all the resources with the given key
|
PersistenceUnit |
get(String key,
String id)
Returns the value of the resource identified by the key and id
|
PersistenceFactory |
getFactory() |
Collection<PersistenceKey> |
list(String key)
Returns a list of all the keys with the metadata of the values associated with the given key.
|
Collection<PersistenceKey> |
list(String key,
long createdSince)
Returns a list of all the keys with the metadata of the values associated with the given key that were create at or after the given timestamp.
|
Map<PersistenceKey,PersistenceUnit> |
store(Collection<PersistenceUnit> persistenceUnitsToStore)
Stores a key-value resources for the given persistence units.
|
PersistenceFactory getFactory()
Map<PersistenceKey,PersistenceUnit> store(Collection<PersistenceUnit> persistenceUnitsToStore)
persistenceUnitsToStore
- a collectionCollection<PersistenceKey> list(String key)
key
- the key to lookup with.Collection<PersistenceKey> list(String key, long createdSince)
key
- the key to lookup with.createdSince
- the timestamp.PersistenceUnit get(String key, String id)
key
- the stored keyid
- the stored idvoid deleteAll(String key)
key
- the key of the resources to deletevoid delete(String key, Collection<String> idsToRemove)
key
- the key of the resources to deleteidsToRemove
- the ids of the resources to delete Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.