Class EndpointDiscoveryRefreshCache
- java.lang.Object
-
- software.amazon.awssdk.core.endpointdiscovery.EndpointDiscoveryRefreshCache
-
public final class EndpointDiscoveryRefreshCache extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointDiscoveryRefreshCache
create(EndpointDiscoveryCacheLoader client)
CompletableFuture<EndpointDiscoveryEndpoint>
discoverEndpoint(EndpointDiscoveryRequest request)
void
evict(String key)
URI
get(String accessKey, EndpointDiscoveryRequest request)
Abstract method to be implemented by each service to handle retrieving endpoints from a cache.
-
-
-
Method Detail
-
create
public static EndpointDiscoveryRefreshCache create(EndpointDiscoveryCacheLoader client)
-
get
public URI get(String accessKey, EndpointDiscoveryRequest request)
Abstract method to be implemented by each service to handle retrieving endpoints from a cache. Each service must handle converting a request object into the relevant cache key.- Returns:
- The endpoint to use for this request
-
discoverEndpoint
public CompletableFuture<EndpointDiscoveryEndpoint> discoverEndpoint(EndpointDiscoveryRequest request)
-
evict
public void evict(String key)
-
-