@ConfigurationProperties(value="spring.cloud.consul.config") @Validated public class ConsulConfigProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsulConfigProperties.Format
There are many ways in which we can specify configuration in consul i.e.,
Nested key value style: Where value is either a constant or part of the key (nested).
|
static class |
ConsulConfigProperties.Watch |
| Constructor and Description |
|---|
ConsulConfigProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAclToken() |
@NotEmpty String |
getDataKey() |
@NotEmpty String |
getDefaultContext() |
@NotNull ConsulConfigProperties.Format |
getFormat() |
String |
getName() |
String |
getPrefix() |
@NotEmpty String |
getProfileSeparator() |
ConsulConfigProperties.Watch |
getWatch() |
void |
init() |
boolean |
isEnabled() |
boolean |
isFailFast() |
void |
setAclToken(String aclToken) |
void |
setDataKey(@NotEmpty String dataKey) |
void |
setDefaultContext(@NotEmpty String defaultContext) |
void |
setEnabled(boolean enabled) |
void |
setFailFast(boolean failFast) |
void |
setFormat(@NotNull ConsulConfigProperties.Format format) |
void |
setName(String name) |
void |
setPrefix(String prefix) |
void |
setProfileSeparator(@NotEmpty String profileSeparator) |
void |
setWatch(ConsulConfigProperties.Watch watch) |
String |
toString() |
@PostConstruct public void init()
public boolean isEnabled()
public String getPrefix()
@NotEmpty public @NotEmpty String getDefaultContext()
@NotEmpty public @NotEmpty String getProfileSeparator()
@NotNull public @NotNull ConsulConfigProperties.Format getFormat()
@NotEmpty public @NotEmpty String getDataKey()
public String getAclToken()
public ConsulConfigProperties.Watch getWatch()
public boolean isFailFast()
public String getName()
public void setEnabled(boolean enabled)
public void setPrefix(String prefix)
public void setDefaultContext(@NotEmpty
@NotEmpty String defaultContext)
public void setProfileSeparator(@NotEmpty
@NotEmpty String profileSeparator)
public void setFormat(@NotNull
@NotNull ConsulConfigProperties.Format format)
public void setDataKey(@NotEmpty
@NotEmpty String dataKey)
public void setAclToken(String aclToken)
public void setWatch(ConsulConfigProperties.Watch watch)
public void setFailFast(boolean failFast)
public void setName(String name)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.