public class YamlClientConfigBuilder extends AbstractYamlConfigBuilder
ClientConfig using YAML.| Constructor and Description |
|---|
YamlClientConfigBuilder()
Loads the client config using the following resolution mechanism:
first it checks if a system property 'hazelcast.client.config' is set.
|
YamlClientConfigBuilder(File file) |
YamlClientConfigBuilder(InputStream in) |
YamlClientConfigBuilder(String resource) |
YamlClientConfigBuilder(URL url) |
YamlClientConfigBuilder(com.hazelcast.client.config.impl.YamlClientConfigLocator locator)
Constructs a
YamlClientConfigBuilder that loads the configuration
with the provided YamlClientConfigLocator. |
| Modifier and Type | Method and Description |
|---|---|
ClientConfig |
build() |
ClientConfig |
build(ClassLoader classLoader) |
protected String |
getConfigRoot() |
YamlClientConfigBuilder |
setProperties(Properties properties) |
getProperties, importDocuments, replaceVariables, setPropertiesInternalpublic YamlClientConfigBuilder(String resource) throws IOException
IOExceptionpublic YamlClientConfigBuilder(File file) throws IOException
IOExceptionpublic YamlClientConfigBuilder(URL url) throws IOException
IOExceptionpublic YamlClientConfigBuilder(InputStream in)
public YamlClientConfigBuilder()
@PrivateApi public YamlClientConfigBuilder(com.hazelcast.client.config.impl.YamlClientConfigLocator locator)
YamlClientConfigBuilder that loads the configuration
with the provided YamlClientConfigLocator.
If the provided YamlClientConfigLocator is null, a new
instance is created and the config is located in every possible
places. For these places, please see YamlClientConfigLocator.
If the provided YamlClientConfigLocator is not null, it
is expected that it already located the configuration YAML to load
from. No further attempt to locate the configuration YAML is made
if the configuration YAML is not located already.
locator - the configured locator to usepublic ClientConfig build()
public ClientConfig build(ClassLoader classLoader)
public YamlClientConfigBuilder setProperties(Properties properties)
protected String getConfigRoot()
getConfigRoot in class AbstractYamlConfigBuilderCopyright © 2021 Hazelcast, Inc.. All rights reserved.