Implementations of this interface are expected to be thread-safe and can be safely accessed by multiple concurrent threads.
| Modifier and Type | Method and Description |
|---|---|
| public V | Returns: the current (existing or computed) value associated with the specified key, or null if the computed value is nullthe key with which the specified value is to be associated key)Returns the value associated with the |
| public Map | |
| public CompletableFuture | Returns: the future that is loading the valuekey with which a value may be associated key)Loads a new value for the |
| public CompletableFuture | Returns: a future containing an unmodifiable mapping of keys to values for the specified keys that are loading the valuesthe keys whose associated values are to be returned keys)Loads a new value for each |
| get | back to summary |
|---|---|
| public V get(K key) Returns the value associated with the
If another call to
If the specified key is not already associated with a value, attempts to compute its value and
enters it into this cache unless
| |
| getAll | back to summary |
|---|---|
| public Map Returns a map of the values associated with the
Caches loaded by a
Note that duplicate elements in
| |
| refresh | back to summary |
|---|---|
| public CompletableFuture Loads a new value for the
Caches loaded by a
Returns an existing future without doing anything if another thread is currently loading the
value for
| |
| refreshAll | back to summary |
|---|---|
| public CompletableFuture Loads a new value for each
Caches loaded by a
| |