Class CryptoMaterialsCache.UsageStats
java.lang.Object
com.amazonaws.encryptionsdk.caching.CryptoMaterialsCache.UsageStats
- Enclosing interface:
- CryptoMaterialsCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(CryptoMaterialsCache.UsageStats other)Performs a pairwise add of two UsageStats objects.booleanlonglonginthashCode()toString()
-
Field Details
-
ZERO
-
-
Constructor Details
-
UsageStats
public UsageStats(long bytesEncrypted, long messagesEncrypted)
-
-
Method Details
-
getBytesEncrypted
public long getBytesEncrypted() -
getMessagesEncrypted
public long getMessagesEncrypted() -
add
Performs a pairwise add of two UsageStats objects. In the event of overflow, counters saturate atLong.MAX_VALUE- Parameters:
other-- Returns:
-
equals
-
hashCode
public int hashCode() -
toString
-