com.amazonaws.util

## クラス ResponseMetadataCache

- java.lang.Object
- - com.amazonaws.util.ResponseMetadataCache

-     public class ResponseMetadataCache
      extends java.lang.Object

  Cache of response metadata for recently executed requests for diagnostic purposes. This cache has a max size and as entries are added, the oldest entry is aged out once the max size has been reached.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `ResponseMetadataCache(int maxEntries)` Creates a new cache that will contain, at most the specified number of entries.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `void` | `add(java.lang.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(java.lang.Object obj)` Returns the response metadata associated with the specified object, or null if no metadata is associated with that object.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### ResponseMetadataCache

          public ResponseMetadataCache(int maxEntries)

      Creates a new cache that will contain, at most the specified number of entries.
      パラメータ:
        `maxEntries` - The maximum size of this cache.

  - ### メソッドの詳細

    - #### add

          public void add(java.lang.Object obj,
                 ResponseMetadata metadata)

      Adds a new entry to this cache, possibly evicting the oldest entry if the cache is at its size limit.
      パラメータ:
        `obj` - The key by which to store the metadata.
        `metadata` - The metadata for this entry.

    - #### get

          public ResponseMetadata get(java.lang.Object obj)

      Returns the response metadata associated with the specified object, or null if no metadata is associated with that object.
      パラメータ:
        `obj` - The key by which the desired metadata is stored.
      戻り値:
        The response metadata associated with the given object key, otherwise null if no metadata is associated with that object.