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
Modifier and TypeClassDescriptionstatic final class
Unique 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
-
Method Summary
Modifier and TypeMethodDescriptionLogic to construct a unique identity for the asset.void
lookupByGuid
(String guid) Logic to refresh the cache for a single object from Atlan.void
lookupByName
(ObjectName name) Logic to refresh the cache for a single object from Atlan.void
lookupByQualifiedName
(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:
lookupByGuid
in 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:
lookupByQualifiedName
in 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:
lookupByName
in 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:
getName
in classAbstractAssetCache
- Parameters:
asset
- for which to construct the unique identity- Returns:
- a unique identity for the asset, or null if there is no asset
-