@NoImplement
public interface MetadataStorage
InputTypeResolver, TypeKeysResolver and OutputTypeResolver. It also allows to evict entries in
case recalculations are needed.| Modifier and Type | Interface and Description |
|---|---|
static interface |
MetadataStorage.MetadataStorageValueResolver |
| Modifier and Type | Method and Description |
|---|---|
<T extends Serializable> |
computeIfAbsent(Serializable key,
MetadataStorage.MetadataStorageValueResolver mappingFunction)
If the specified key is not already associated with a value, attempts to compute its value using the given mapping function
and enters it into this map unless
null. |
boolean |
evictEntry(Serializable key)
Evicts the key in the storage.
|
<T extends Serializable> |
get(Serializable key) |
void |
put(Serializable key,
Serializable value)
Associates the specified value with the specified key in the storage.
|
void |
putAll(Map<? extends Serializable,? extends Serializable> values)
Copies all of the entries from the specified map to the storage.
|
void put(Serializable key, Serializable value)
key - a key to associate the specified valuevalue - the value to persist in the storagevoid putAll(Map<? extends Serializable,? extends Serializable> values)
values - values to be stored in the storage<T extends Serializable> Optional<T> get(Serializable key)
key - the key whose associated value is to be returnedOption.empty() if this map contains no value for the
specified key.<T extends Serializable> T computeIfAbsent(Serializable key, MetadataStorage.MetadataStorageValueResolver mappingFunction) throws MetadataResolvingException, ConnectionException
null.key - the key whose associated value is to be returnedMetadataResolvingExceptionConnectionExceptionboolean evictEntry(Serializable key)
Copyright © 2023 MuleSoft, Inc.. All rights reserved.