Class TtlScheduler
java.lang.Object
org.springframework.cloud.consul.discovery.TtlScheduler
Created by nicu on 11.03.2015.
- Author:
- Stéphane LEROY, Chris Bono
-
Constructor Summary
ConstructorsConstructorDescriptionTtlScheduler(HeartbeatProperties heartbeatProperties, ConsulDiscoveryProperties discoveryProperties, org.springframework.cloud.consul.ConsulClient client, ReregistrationPredicate reregistrationPredicate, org.springframework.beans.factory.ObjectProvider<ApplicationStatusProvider> applicationStatusProviderFactory) -
Method Summary
-
Constructor Details
-
TtlScheduler
public TtlScheduler(HeartbeatProperties heartbeatProperties, ConsulDiscoveryProperties discoveryProperties, org.springframework.cloud.consul.ConsulClient client, ReregistrationPredicate reregistrationPredicate, org.springframework.beans.factory.ObjectProvider<ApplicationStatusProvider> applicationStatusProviderFactory)
-
-
Method Details
-
add
public void add(org.springframework.cloud.consul.model.http.agent.NewService service) -
add
Add a service to the checks loop.- Parameters:
instanceId- instance id
-
remove
-