Package com.atlan.cache
Class RoleCache
- All Implemented Interfaces:
Closeable
,AutoCloseable
Lazily-loaded cache for translating Atlan-internal roles into their various IDs.
-
Field Summary
Fields inherited from class com.atlan.cache.AbstractMassCache
bulkRefresh, lock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
lookupById
(String id) Logic to look up a single object for the cache.protected void
lookupByName
(String name) Logic to look up a single object for the cache.protected void
Logic to refresh a specific cache en-masse (must be implemented).Methods inherited from class com.atlan.cache.AbstractMassCache
cache, cache, cacheById, cacheByName, cacheBySid, close, entrySet, getBulkRefresh, getById, getById, getByName, getByName, getBySid, getBySid, getIdForName, getIdForName, getIdForSid, getIdForSid, getIdFromName, getIdFromSid, getNameForId, getNameForId, getNameForSid, getNameForSid, getNameFromId, getNameFromId, getNameFromSid, getObjectById, getSidForName, getSidForName, getSidFromId, getSidFromName, isEmpty, isIdKnown, isNameKnown, lookupBySid, refresh
-
Constructor Details
-
RoleCache
-
-
Method Details
-
refreshCache
Logic to refresh a specific cache en-masse (must be implemented).- Specified by:
refreshCache
in classAbstractMassCache<AtlanRole>
- Throws:
AtlanException
- on any error communicating with Atlan to refresh the cache of objects
-
lookupById
Logic to look up a single object for the cache.- Specified by:
lookupById
in classAbstractMassCache<AtlanRole>
- Parameters:
id
- unique internal identifier for the object- Throws:
AtlanException
- on any error communicating with Atlan
-
lookupByName
Logic to look up a single object for the cache.- Specified by:
lookupByName
in classAbstractMassCache<AtlanRole>
- Parameters:
name
- unique name for the object- Throws:
AtlanException
- on any error communicating with Atlan
-