Class CryptoMaterialsCache.UsageStats
- java.lang.Object
-
- com.amazonaws.encryptionsdk.caching.CryptoMaterialsCache.UsageStats
-
- Enclosing interface:
- CryptoMaterialsCache
public static final class CryptoMaterialsCache.UsageStats extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static CryptoMaterialsCache.UsageStats
ZERO
-
Constructor Summary
Constructors Constructor Description UsageStats(long bytesEncrypted, long messagesEncrypted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoMaterialsCache.UsageStats
add(CryptoMaterialsCache.UsageStats other)
Performs a pairwise add of two UsageStats objects.boolean
equals(Object o)
long
getBytesEncrypted()
long
getMessagesEncrypted()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
ZERO
public static final CryptoMaterialsCache.UsageStats ZERO
-
-
Method Detail
-
getBytesEncrypted
public long getBytesEncrypted()
-
getMessagesEncrypted
public long getMessagesEncrypted()
-
add
public CryptoMaterialsCache.UsageStats add(CryptoMaterialsCache.UsageStats other)
Performs a pairwise add of two UsageStats objects. In the event of overflow, counters saturate atLong.MAX_VALUE
- Parameters:
other
-- Returns:
-
-