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, client, lock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlookupById(String id) Logic to look up a single object for the cache.protected voidlookupByName(String name) Logic to look up a single object for the cache.protected voidLogic to refresh a specific cache en-masse (must be implemented).Methods inherited from class com.atlan.cache.AbstractMassCache
cache, cache, cacheById, cacheById, cacheByName, cacheByName, cacheBySid, cacheBySid, close, entrySet, getBulkRefresh, getById, getById, getById, getByName, getByName, getByName, getBySid, getBySid, getBySid, getIdForName, getIdForName, getIdForName, getIdForSid, getIdForSid, getIdForSid, getIdFromName, getIdFromSid, getNameForId, getNameForId, getNameForId, getNameForSid, getNameForSid, getNameForSid, getNameFromId, getNameFromId, getNameFromSid, getObjectById, getSidForName, getSidForName, getSidForName, getSidFromId, getSidFromName, isEmpty, isIdKnown, isNameKnown, lookupBySid, refresh, refresh
-
Constructor Details
-
RoleCache
-
-
Method Details
-
refreshCache
Logic to refresh a specific cache en-masse (must be implemented).- Specified by:
refreshCachein 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:
lookupByIdin 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:
lookupByNamein classAbstractMassCache<AtlanRole>- Parameters:
name- unique name for the object- Throws:
AtlanException- on any error communicating with Atlan
-