Package com.atlan.cache
Class OffHeapDeferredCache
java.lang.Object
com.atlan.cache.AbstractOffHeapCache<String,AssetBatch.RelatedAssetHold>
com.atlan.cache.OffHeapDeferredCache
- All Implemented Interfaces:
AtlanCloseable
,AutoCloseable
Generic class through which to cache any deferred assets efficiently, off-heap, to avoid risking extreme
memory usage.
-
Constructor Summary
ConstructorsConstructorDescriptionOffHeapDeferredCache
(AtlanClient client, String name) Construct new cache for failures. -
Method Summary
Modifier and TypeMethodDescriptiondeserializeKey
(byte[] bytes) deserializeValue
(byte[] bytes) byte[]
serializeKey
(String key) byte[]
Methods inherited from class com.atlan.cache.AbstractOffHeapCache
close, containsKey, entrySet, get, getName, getSize, isEmpty, isNotClosed, isNotEmpty, put, putAll, size, values
-
Constructor Details
-
OffHeapDeferredCache
Construct new cache for failures.- Parameters:
client
- connectivity to the Atlan tenantname
- to distinguish which cache is which
-
-
Method Details
-
serializeKey
- Specified by:
serializeKey
in classAbstractOffHeapCache<String,
AssetBatch.RelatedAssetHold>
-
deserializeKey
- Specified by:
deserializeKey
in classAbstractOffHeapCache<String,
AssetBatch.RelatedAssetHold>
-
serializeValue
- Specified by:
serializeValue
in classAbstractOffHeapCache<String,
AssetBatch.RelatedAssetHold>
-
deserializeValue
- Specified by:
deserializeValue
in classAbstractOffHeapCache<String,
AssetBatch.RelatedAssetHold>
-