public class AsyncResolver<T extends EurekaEndpoint> extends java.lang.Object implements ClosableResolver<T>
| Constructor and Description |
|---|
AsyncResolver(java.lang.String name,
ClusterResolver<T> delegate,
int executorThreadPoolSize,
int refreshIntervalMs,
int warmUpTimeoutMs)
Create an async resolver with an empty initial value.
|
AsyncResolver(java.lang.String name,
ClusterResolver<T> delegate,
java.util.List<T> initialValues,
int executorThreadPoolSize,
int refreshIntervalMs)
Create an async resolver with a preset initial value.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
getClusterEndpoints() |
long |
getEndpointsSize() |
long |
getLastLoadTimestamp() |
java.lang.String |
getRegion() |
void |
shutdown() |
public AsyncResolver(java.lang.String name,
ClusterResolver<T> delegate,
int executorThreadPoolSize,
int refreshIntervalMs,
int warmUpTimeoutMs)
public AsyncResolver(java.lang.String name,
ClusterResolver<T> delegate,
java.util.List<T> initialValues,
int executorThreadPoolSize,
int refreshIntervalMs)
public void shutdown()
shutdown in interface ClosableResolver<T extends EurekaEndpoint>public java.lang.String getRegion()
getRegion in interface ClusterResolver<T extends EurekaEndpoint>public java.util.List<T> getClusterEndpoints()
getClusterEndpoints in interface ClusterResolver<T extends EurekaEndpoint>@Monitor(name="eurekaClient.resolver.lastLoadTimestamp",
description="How much time has passed from last successful async load",
type=GAUGE)
public long getLastLoadTimestamp()
@Monitor(name="eurekaClient.resolver.endpointsSize",
description="How many records are the in the endpoints ref",
type=GAUGE)
public long getEndpointsSize()