public interface MetadataCache
Modifier and Type | Method and Description |
---|---|
void |
add(Object obj,
ResponseMetadata metadata)
Adds a new entry to this cache, possibly evicting the oldest entry if the
cache is at its size limit.
|
ResponseMetadata |
get(Object obj)
Returns the response metadata associated with the specified object, or
null if no metadata is associated with that object.
|
void add(Object obj, ResponseMetadata metadata)
obj
- The key by which to store the metadata.metadata
- The metadata for this entry.ResponseMetadata get(Object obj)
obj
- The key by which the desired metadata is stored.Copyright © 2024. All rights reserved.