Class EurekaEndpointGroup
java.lang.Object
com.linecorp.armeria.common.util.AbstractListenable<List<Endpoint>>
com.linecorp.armeria.client.endpoint.DynamicEndpointGroup
com.linecorp.armeria.client.eureka.EurekaEndpointGroup
- All Implemented Interfaces:
EndpointGroup,EndpointSelector,AsyncCloseable,Listenable<List<Endpoint>>,ListenableAsyncCloseable,AutoCloseable
A Eureka-based
EndpointGroup implementation. This EndpointGroup retrieves the list of
Endpoints from a Eureka registry.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic EurekaEndpointGroupBuilderbuilder(SessionProtocol sessionProtocol, EndpointGroup endpointGroup) Returns a newEurekaEndpointGroupBuildercreated with the specifiedSessionProtocolandEndpointGroup.static EurekaEndpointGroupBuilderbuilder(SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) Returns a newEurekaEndpointGroupBuildercreated with the specifiedSessionProtocol,EndpointGroupand path.static EurekaEndpointGroupBuilderReturns a newEurekaEndpointGroupBuildercreated with the specifiedeurekaUri.static EurekaEndpointGroupBuilderReturns a newEurekaEndpointGroupBuildercreated with the specifiedeurekaUri.protected voiddoCloseAsync(CompletableFuture<?> future) Override this method to release the resources held by thisEndpointGroupand complete the specifiedCompletableFuture.static EurekaEndpointGroupof(SessionProtocol sessionProtocol, EndpointGroup endpointGroup) Returns a newEurekaEndpointGroupthat retrieves theEndpointlist from the specifiedEndpointGroup.static EurekaEndpointGroupof(SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) Returns a newEurekaEndpointGroupthat retrieves theEndpointlist from the specifiedEndpointGroupunder the specifiedpath.static EurekaEndpointGroupstatic EurekaEndpointGrouptoString()Methods inherited from class com.linecorp.armeria.client.endpoint.DynamicEndpointGroup
addEndpoint, allowsEmptyEndpoints, builder, close, closeAsync, endpoints, isClosed, isClosing, latestValue, removeEndpoint, select, select, selectionStrategy, selectionTimeoutMillis, selectNow, setEndpoints, toString, toStringSelector, whenClosed, whenReadyMethods inherited from class com.linecorp.armeria.common.util.AbstractListenable
addListener, addListener, notifyListeners, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.linecorp.armeria.client.endpoint.EndpointGroup
addListener, addListener, orElse, removeListener
-
Method Details
-
of
-
of
-
of
Returns a newEurekaEndpointGroupthat retrieves theEndpointlist from the specifiedEndpointGroup. -
of
public static EurekaEndpointGroup of(SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) Returns a newEurekaEndpointGroupthat retrieves theEndpointlist from the specifiedEndpointGroupunder the specifiedpath. -
builder
Returns a newEurekaEndpointGroupBuildercreated with the specifiedeurekaUri. -
builder
Returns a newEurekaEndpointGroupBuildercreated with the specifiedeurekaUri. -
builder
public static EurekaEndpointGroupBuilder builder(SessionProtocol sessionProtocol, EndpointGroup endpointGroup) Returns a newEurekaEndpointGroupBuildercreated with the specifiedSessionProtocolandEndpointGroup. -
builder
public static EurekaEndpointGroupBuilder builder(SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) Returns a newEurekaEndpointGroupBuildercreated with the specifiedSessionProtocol,EndpointGroupand path. -
doCloseAsync
Description copied from class:DynamicEndpointGroupOverride this method to release the resources held by thisEndpointGroupand complete the specifiedCompletableFuture.- Overrides:
doCloseAsyncin classDynamicEndpointGroup
-
toString
- Overrides:
toStringin classDynamicEndpointGroup
-