public class ServiceProvider<T> extends Object
| Constructor and Description |
|---|
ServiceProvider(String serviceName,
Serializer<T> serializer,
org.apache.curator.framework.CuratorFramework curatorFramework,
ServiceNode<T> serviceNode,
List<Healthcheck> healthchecks,
Supplier<Double> healthMetricSupplier,
int healthUpdateInterval,
int staleUpdateThreshold,
ServiceHealthAggregator serviceHealthAggregator) |
| Modifier and Type | Method and Description |
|---|---|
Supplier<Double> |
getHealthMetricSupplier() |
ServiceNode<T> |
getServiceNode() |
int |
getStaleUpdateThreshold() |
void |
start() |
void |
stop() |
void |
updateState(ServiceNode<T> serviceNode) |
public ServiceProvider(String serviceName, Serializer<T> serializer, org.apache.curator.framework.CuratorFramework curatorFramework, ServiceNode<T> serviceNode, List<Healthcheck> healthchecks, Supplier<Double> healthMetricSupplier, int healthUpdateInterval, int staleUpdateThreshold, ServiceHealthAggregator serviceHealthAggregator)
public void updateState(ServiceNode<T> serviceNode) throws Exception
Exceptionpublic ServiceNode<T> getServiceNode()
public int getStaleUpdateThreshold()
Copyright © 2021. All rights reserved.