public interface MetadataCache
InputTypeResolver,
TypeKeysResolver and OutputTypeResolver| Modifier and Type | Interface and Description |
|---|---|
static interface |
MetadataCache.MetadataCacheValueResolver |
| Modifier and Type | Method and Description |
|---|---|
<T extends Serializable> |
computeIfAbsent(Serializable key,
MetadataCache.MetadataCacheValueResolver 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. |
<T extends Serializable> |
get(Serializable key) |
void |
put(Serializable key,
Serializable value)
Associates the specified value with the specified key in the cache.
|
void |
putAll(Map<? extends Serializable,? extends Serializable> values)
Copies all of the entries from the specified map to the cache.
|
void put(Serializable key, Serializable value)
key - a key to associate the specified valuevalue - the value to persist in the cachevoid putAll(Map<? extends Serializable,? extends Serializable> values)
values - values to be stored in the cache<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, MetadataCache.MetadataCacheValueResolver mappingFunction) throws MetadataResolvingException, ConnectionException
null.key - the key whose associated value is to be returnedMetadataResolvingExceptionConnectionExceptionCopyright © 2017 MuleSoft, Inc.. All rights reserved.