public class NullResponseMetadataCache extends Object implements MetadataCache
| Constructor and Description | 
|---|
| NullResponseMetadataCache() | 
| 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. | 
public void add(Object obj, ResponseMetadata metadata)
MetadataCacheadd in interface MetadataCacheobj - The key by which to store the metadata.metadata - The metadata for this entry.public ResponseMetadata get(Object obj)
MetadataCacheget in interface MetadataCacheobj - The key by which the desired metadata is stored.Copyright © 2018. All rights reserved.