Interface CryptoMaterialsCache.EncryptCacheEntry

  • Enclosing interface:
    CryptoMaterialsCache

    public static interface CryptoMaterialsCache.EncryptCacheEntry
    Represents an entry in the encrypt cache, and provides methods for manipulating the entry.

    Note that the EncryptCacheEntry Java object remains valid even after the cache entry is invalidated or evicted; getResult will still return a valid result, for example.

    • Method Detail

      • getUsageStats

        CryptoMaterialsCache.UsageStats getUsageStats()
        Returns:
        The current usage statistics for this entry. The caller should be aware that these statistics may be stale by the time they are returned.
      • getEntryCreationTime

        long getEntryCreationTime()
        Returns:
        The unix timestamp at which this entry was added to the cache, in milliseconds
      • getResult

        EncryptionMaterials getResult()
        Returns:
        The EncryptionMaterials associated with this cache entry. The encrypt completion callback should be a no-op.
      • invalidate

        default void invalidate()
        Suggests to the cache that this entry should be removed from the cache.