Class FifoCache<T>
java.lang.Object
software.amazon.awssdk.http.auth.aws.internal.signer.util.FifoCache<T>
- Type Parameters:
T
- value type
A bounded cache that has a FIFO eviction policy when the cache is full.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FifoCache
public FifoCache(int maxSize) - Parameters:
maxSize
- the maximum number of entries of the cache
-
-
Method Details
-
add
-
get
-
size
public int size()Returns the current size of the cache. -
getMaxSize
public int getMaxSize()Returns the maximum size of the cache. -
toString
-