public class ClientClasspathYamlConfig extends ClientConfig
ClientConfig
which is initialized by loading an YAML configuration file from the classpath.Constructor and Description |
---|
ClientClasspathYamlConfig(ClassLoader classLoader,
String resource,
Properties properties)
Creates a config which is loaded from a classpath resource.
|
ClientClasspathYamlConfig(String resource)
Creates a config which is loaded from a classpath resource using the
Thread.currentThread() contextClassLoader. |
ClientClasspathYamlConfig(String resource,
Properties properties)
Creates a config which is loaded from a classpath resource using the
Thread.currentThread() contextClassLoader. |
addFlakeIdGeneratorConfig, addLabel, addListenerConfig, addNearCacheConfig, addProxyFactoryConfig, addQueryCacheConfig, addReliableTopicConfig, equals, findFlakeIdGeneratorConfig, getAltoConfig, getClassLoader, getClusterName, getConfigPatternMatcher, getConnectionStrategyConfig, getFlakeIdGeneratorConfig, getFlakeIdGeneratorConfigMap, getInstanceName, getInstanceTrackingConfig, getLabels, getListenerConfigs, getLoadBalancer, getLoadBalancerClassName, getManagedContext, getMetricsConfig, getNativeMemoryConfig, getNearCacheConfig, getNearCacheConfigMap, getNetworkConfig, getOrCreateQueryCacheConfig, getOrNullQueryCacheConfig, getProperties, getProperty, getProxyFactoryConfigs, getQueryCacheConfigs, getReliableTopicConfig, getReliableTopicConfigMap, getSecurityConfig, getSerializationConfig, getSqlConfig, getUserCodeDeploymentConfig, getUserContext, hashCode, isBackupAckToClientEnabled, load, setAltoConfig, setBackupAckToClientEnabled, setClassLoader, setClusterName, setConfigPatternMatcher, setConnectionStrategyConfig, setCredentials, setFlakeIdGeneratorConfigMap, setInstanceName, setInstanceTrackingConfig, setLabels, setListenerConfigs, setLoadBalancer, setLoadBalancerClassName, setManagedContext, setMetricsConfig, setNativeMemoryConfig, setNearCacheConfigMap, setNetworkConfig, setProperties, setProperty, setProxyFactoryConfigs, setQueryCacheConfigs, setReliableTopicConfigMap, setSecurityConfig, setSerializationConfig, setSqlConfig, setUserCodeDeploymentConfig, setUserContext, toString
public ClientClasspathYamlConfig(String resource)
Thread.currentThread()
contextClassLoader. The System.properties are used to resolve variables
in the YAML.resource
- the resource, a YAML configuration file from the classpath,
without the "classpath:" prefixIllegalArgumentException
- if the resource could not be foundInvalidConfigurationException
- if the YAML content is invalidpublic ClientClasspathYamlConfig(String resource, Properties properties)
Thread.currentThread()
contextClassLoader.resource
- the resource, a YAML configuration file from the classpath,
without the "classpath:" prefixproperties
- the Properties to resolve variables in the YAMLIllegalArgumentException
- if the resource could not be found or if properties is null
InvalidConfigurationException
- if the YAML content is invalidpublic ClientClasspathYamlConfig(ClassLoader classLoader, String resource, Properties properties)
classLoader
- the ClassLoader used to load the resourceresource
- the resource, a YAML configuration file from the classpath,
without the "classpath:" prefixproperties
- the properties used to resolve variables in the YAMLIllegalArgumentException
- if classLoader or resource is null
, or if the resource is not foundInvalidConfigurationException
- if the YAML content is invalidCopyright © 2023 Hazelcast, Inc.. All rights reserved.