public class ServiceProviderBuilder<T> extends Object
| Constructor and Description |
|---|
ServiceProviderBuilder() |
public ServiceProviderBuilder<T> withNamespace(String namespace)
public ServiceProviderBuilder<T> withServiceName(String serviceName)
public ServiceProviderBuilder<T> withCuratorFramework(org.apache.curator.framework.CuratorFramework curatorFramework)
public ServiceProviderBuilder<T> withConnectionString(String connectionString)
public ServiceProviderBuilder<T> withSerializer(Serializer<T> deserializer)
public ServiceProviderBuilder<T> withHostname(String hostname)
public ServiceProviderBuilder<T> withPort(int port)
public ServiceProviderBuilder<T> withNodeData(T nodeData)
public ServiceProviderBuilder<T> withHealthMetricSupplier(Supplier<Double> healthMetricSupplier)
public ServiceProviderBuilder<T> withHealthcheck(Healthcheck healthcheck)
public ServiceProviderBuilder<T> withHealthUpdateIntervalMs(int healthUpdateIntervalMs)
public ServiceProviderBuilder<T> withStaleUpdateThresholdMs(int staleUpdateThresholdMs)
public ServiceProviderBuilder<T> withIsolatedHealthMonitor(IsolatedHealthMonitor monitor)
IsolatedHealthMonitor which will later be
scheduled at regular intervals and monitored to generate and maintain an aggregated health of the service
the scheduling will happen in an isolated threadmonitor - an implementation of the IsolatedHealthMonitorpublic ServiceProvider<T> buildServiceDiscovery()
Copyright © 2021. All rights reserved.