Interface ConnectionConfigurationService
-
public interface ConnectionConfigurationService
A service for basic management of the connection configuration.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Variant
getConfiguration()
Returns current connection configuration properties.static ConnectionConfigurationService
getInstance(Session session)
Returns a new instance of the default service implementation.void
updateConfiguration(Variant configuration)
Updates the connection configuration record with the provided properties.
-
-
-
Method Detail
-
updateConfiguration
void updateConfiguration(Variant configuration)
Updates the connection configuration record with the provided properties. If the configuration is not present, a new record will be created.- Parameters:
configuration
- connection configuration properties
-
getConfiguration
Variant getConfiguration()
Returns current connection configuration properties.- Returns:
- connection configuration properties
- Throws:
ConnectionConfigurationNotFoundException
- if connection configuration record does not currently exist
-
getInstance
static ConnectionConfigurationService getInstance(Session session)
Returns a new instance of the default service implementation.Default implementation of the service uses:
- a default implementation of
ConfigurationRepository
connection_configuration
as the configuration record key
- Parameters:
session
- Snowpark session object- Returns:
- a new service instance
- a default implementation of
-
-