Class ConsulEnvironmentWatch
java.lang.Object
org.springframework.cloud.config.server.environment.ConsulEnvironmentWatch
- All Implemented Interfaces:
EnvironmentWatch
@ConfigurationProperties("spring.cloud.config.server.consul.watch")
public class ConsulEnvironmentWatch
extends Object
implements EnvironmentWatch
- Author:
- Spencer Gibb
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.cloud.config.server.environment.EnvironmentWatch
EnvironmentWatch.Default
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
setPort
(int port) void
setRestTemplate
(org.springframework.web.client.RestTemplate restTemplate) void
void
void
-
Field Details
-
CONSUL_INDEX
Consul index header name.- See Also:
-
CONSUL_TOKEN
Consul token header name.- See Also:
-
RESPONSE_TYPE
Response types.
-
-
Constructor Details
-
ConsulEnvironmentWatch
public ConsulEnvironmentWatch()
-
-
Method Details
-
watch
- Specified by:
watch
in interfaceEnvironmentWatch
-
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) -
setScheme
-
setHost
-
setPort
public void setPort(int port) -
setPath
-
setWait
-
setToken
-