public class Configuration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CONNECT_TIMEOUT
Property name for socket connection timeout used by services created with
this configuration.
|
static String |
PROPERTY_LOG_HTTP_REQUESTS
Property name to control if HTTP logging to console is on or off.
|
static String |
PROPERTY_READ_TIMEOUT
Property name for socket read timeout used by services created with this
configuration.
|
| Constructor and Description |
|---|
Configuration() |
Configuration(Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Class<T> service) |
<T> T |
create(String profile,
Class<T> service) |
Builder |
getBuilder() |
static Configuration |
getInstance() |
Map<String,Object> |
getProperties() |
Object |
getProperty(String name) |
static Configuration |
load() |
static void |
setInstance(Configuration configuration) |
void |
setProperty(String name,
Object value) |
public static final String PROPERTY_CONNECT_TIMEOUT
public static final String PROPERTY_READ_TIMEOUT
public static final String PROPERTY_LOG_HTTP_REQUESTS
public Configuration()
public Configuration(Builder builder)
public static Configuration getInstance()
public static void setInstance(Configuration configuration)
public static Configuration load() throws IOException
IOExceptionpublic <T> T create(Class<T> service)
public Builder getBuilder()
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/