Package org.nuxeo.runtime.ts
Interface TransientDataStore
- All Known Subinterfaces:
TransientDataStoreProvider
- All Known Implementing Classes:
AbstractTransientDataStoreProvider
,KeyValueTransientDataStore
,MemTransientDataStore
,MongoDBTransientDataStore
public interface TransientDataStore
This is the interface for a Transient Data store, which stores dictionary values associated to keys on which the TTL
applies.
A Transient Data store is thread-safe.
- Since:
- 2025.8
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if an entry exists with the givenkey
.<S extends Serializable>
SGets the value ofparameter
in the entry with the givenkey
.<S extends Serializable>
Map<String, S> Gets values of the parameters in the entry with the givenkey
.<S extends Serializable>
voidPutsparameter
tovalue
in the entry with the givenkey
.<S extends Serializable>
voidPutsparameters
in the entry with the givenkey
.<S extends Serializable>
SRemoves the value ofparameter
in the entry with the givenkey
and returns it.<S extends Serializable>
Map<String, S> Removes values of parameters in the entry with the givenkey
and returns them.
-
Method Details
-
put
<S extends Serializable> void put(@NotNull @NotNull String key, @NotNull @NotNull String parameter, @NotNull S value) Putsparameter
tovalue
in the entry with the givenkey
.If entry does not exist, a new entry is created. If
parameter
already exists in the entry, it is overwritten. -
putAll
<S extends Serializable> void putAll(@NotNull @NotNull String key, @NotNull @NotNull Map<String, S> parameters) Putsparameters
in the entry with the givenkey
. Overwrites any existing parameter in the entry.If entry does not exist, a new entry is created.
- API Note:
- an empty Map is considered as a null parameter, and so rejected
-
exists
Returnstrue
if an entry exists with the givenkey
. -
get
Gets the value ofparameter
in the entry with the givenkey
.Returns
null
if entry or parameter does not exist. -
getAll
Gets values of the parameters in the entry with the givenkey
.Returns
null
if entry does not exist. -
remove
Removes the value ofparameter
in the entry with the givenkey
and returns it.Returns
null
if entry or parameter does not exist. -
removeAll
Removes values of parameters in the entry with the givenkey
and returns them.Returns
null
if entry does not exist.
-