Package com.atlan.cache
Class ConnectionCache
java.lang.Object
com.atlan.cache.AbstractAssetCache
com.atlan.cache.ConnectionCache
Lazily-loaded cache for translating between a connection's simplified name its details.
- id = qualifiedName of the connection (with epoch), for example: default/snowflake/1234567890
- name = simple name of the form {{connectorType}}/{{connectorName}}, for example: snowflake/development
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUnique identity for a connection, in the form: {{type}}/{{name}} For example: snowflake/development -
Field Summary
Fields inherited from class com.atlan.cache.AbstractAssetCache
client -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLogic to construct a unique identity for the asset.voidlookupByGuid(String guid) Logic to refresh the cache for a single object from Atlan.voidlookupByName(ObjectName name) Logic to refresh the cache for a single object from Atlan.voidlookupByQualifiedName(String connectionQN) Logic to refresh the cache for a single object from Atlan.Methods inherited from class com.atlan.cache.AbstractAssetCache
cache, getByGuid, getByGuid, getByName, getByName, getByQualifiedName, getByQualifiedName, isGuidKnown, isNameKnown, isQualifiedNameKnown
-
Constructor Details
-
ConnectionCache
-
-
Method Details
-
lookupByGuid
Logic to refresh the cache for a single object from Atlan.- Specified by:
lookupByGuidin classAbstractAssetCache- Parameters:
guid- the unique UUID of a single item to lookup- Throws:
AtlanException- on any error communicating with Atlan to lookup the object
-
lookupByQualifiedName
Logic to refresh the cache for a single object from Atlan.- Specified by:
lookupByQualifiedNamein classAbstractAssetCache- Parameters:
connectionQN- the identity of a single item to lookup- Throws:
AtlanException- on any error communicating with Atlan to lookup the object
-
lookupByName
Logic to refresh the cache for a single object from Atlan.- Specified by:
lookupByNamein classAbstractAssetCache- Parameters:
name- the name of a single item to lookup- Throws:
AtlanException- on any error communicating with Atlan to lookup the object
-
getName
Logic to construct a unique identity for the asset.- Specified by:
getNamein classAbstractAssetCache- Parameters:
asset- for which to construct the unique identity- Returns:
- a unique identity for the asset, or null if there is no asset
-