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 TypeMethodDescriptionbooleanReturnstrueif an entry exists with the givenkey.<S extends Serializable>
SGets the value ofparameterin 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>
voidPutsparametertovaluein the entry with the givenkey.<S extends Serializable>
voidPutsparametersin the entry with the givenkey.<S extends Serializable>
SRemoves the value ofparameterin the entry with the givenkeyand returns it.<S extends Serializable>
Map<String, S> Removes values of parameters in the entry with the givenkeyand returns them.
-
Method Details
-
put
<S extends Serializable> void put(@NotNull @NotNull String key, @NotNull @NotNull String parameter, @NotNull S value) Putsparametertovaluein the entry with the givenkey.If entry does not exist, a new entry is created. If
parameteralready exists in the entry, it is overwritten. -
putAll
<S extends Serializable> void putAll(@NotNull @NotNull String key, @NotNull @NotNull Map<String, S> parameters) Putsparametersin 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
Returnstrueif an entry exists with the givenkey. -
get
Gets the value ofparameterin the entry with the givenkey.Returns
nullif entry or parameter does not exist. -
getAll
Gets values of the parameters in the entry with the givenkey.Returns
nullif entry does not exist. -
remove
Removes the value ofparameterin the entry with the givenkeyand returns it.Returns
nullif entry or parameter does not exist. -
removeAll
Removes values of parameters in the entry with the givenkeyand returns them.Returns
nullif entry does not exist.
-