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, com.ecwid.consul.v1.ConsulClient client, ReregistrationPredicate reregistrationPredicate, org.springframework.beans.factory.ObjectProvider<ApplicationStatusProvider> applicationStatusProviderFactory) -
Method Summary
-
Constructor Details
-
TtlScheduler
public TtlScheduler(HeartbeatProperties heartbeatProperties, ConsulDiscoveryProperties discoveryProperties, com.ecwid.consul.v1.ConsulClient client, ReregistrationPredicate reregistrationPredicate, org.springframework.beans.factory.ObjectProvider<ApplicationStatusProvider> applicationStatusProviderFactory)
-
-
Method Details
-
add
public void add(com.ecwid.consul.v1.agent.model.NewService service) -
add
Add a service to the checks loop.- Parameters:
instanceId- instance id
-
remove
-