public abstract class AbstractEndpointsCache<ENDPOINT> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<ENDPOINT> |
endpoints |
protected InstanceCache |
instanceCache |
protected String |
transportName |
| Constructor and Description |
|---|
AbstractEndpointsCache(String appId,
String microserviceName,
String microserviceVersionRule,
String transportName) |
| Modifier and Type | Method and Description |
|---|---|
protected List<ENDPOINT> |
createEndpints(InstanceCache newCache) |
protected abstract ENDPOINT |
createEndpoint(Transport transport,
CacheEndpoint cacheEndpoint) |
protected List<ENDPOINT> |
createEndpoints(Map<String,List<CacheEndpoint>> transportMap) |
List<ENDPOINT> |
getLatestEndpoints() |
static void |
setTransportManager(TransportManager transportManager) |
protected String transportName
protected InstanceCache instanceCache
public static void setTransportManager(TransportManager transportManager)
protected List<ENDPOINT> createEndpints(InstanceCache newCache)
protected List<ENDPOINT> createEndpoints(Map<String,List<CacheEndpoint>> transportMap)
protected abstract ENDPOINT createEndpoint(Transport transport, CacheEndpoint cacheEndpoint)
Copyright © 2017. All rights reserved.