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 Modifier and Type Field Description static StringCONSUL_INDEXConsul index header name.static StringCONSUL_TOKENConsul token header name.static org.springframework.core.ParameterizedTypeReference<List<String>>RESPONSE_TYPEResponse types.
-
Constructor Summary
Constructors Constructor Description ConsulEnvironmentWatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetHost(String host)voidsetPath(String path)voidsetPort(int port)voidsetRestTemplate(org.springframework.web.client.RestTemplate restTemplate)voidsetScheme(String scheme)voidsetToken(String token)voidsetWait(String wait)Stringwatch(String state)
-
-
-
Field Detail
-
CONSUL_INDEX
public static final String CONSUL_INDEX
Consul index header name.- See Also:
- Constant Field Values
-
CONSUL_TOKEN
public static final String CONSUL_TOKEN
Consul token header name.- See Also:
- Constant Field Values
-
-
Method Detail
-
watch
public String watch(String state)
- Specified by:
watchin interfaceEnvironmentWatch
-
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
-
setScheme
public void setScheme(String scheme)
-
setHost
public void setHost(String host)
-
setPort
public void setPort(int port)
-
setPath
public void setPath(String path)
-
setWait
public void setWait(String wait)
-
setToken
public void setToken(String token)
-
-