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
Endpoint
s from a Eureka registry.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic EurekaEndpointGroupBuilder
builder
(SessionProtocol sessionProtocol, EndpointGroup endpointGroup) Returns a newEurekaEndpointGroupBuilder
created with the specifiedSessionProtocol
andEndpointGroup
.static EurekaEndpointGroupBuilder
builder
(SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) Returns a newEurekaEndpointGroupBuilder
created with the specifiedSessionProtocol
,EndpointGroup
and path.static EurekaEndpointGroupBuilder
Returns a newEurekaEndpointGroupBuilder
created with the specifiedeurekaUri
.static EurekaEndpointGroupBuilder
Returns a newEurekaEndpointGroupBuilder
created with the specifiedeurekaUri
.protected void
doCloseAsync
(CompletableFuture<?> future) Override this method to release the resources held by thisEndpointGroup
and complete the specifiedCompletableFuture
.static EurekaEndpointGroup
of
(SessionProtocol sessionProtocol, EndpointGroup endpointGroup) Returns a newEurekaEndpointGroup
that retrieves theEndpoint
list from the specifiedEndpointGroup
.static EurekaEndpointGroup
of
(SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) Returns a newEurekaEndpointGroup
that retrieves theEndpoint
list from the specifiedEndpointGroup
under the specifiedpath
.static EurekaEndpointGroup
static EurekaEndpointGroup
toString()
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, whenClosed, whenReady
Methods inherited from class com.linecorp.armeria.common.util.AbstractListenable
addListener, addListener, notifyListeners, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.client.endpoint.EndpointGroup
addListener, addListener, orElse, removeListener
-
Method Details
-
of
-
of
-
of
Returns a newEurekaEndpointGroup
that retrieves theEndpoint
list from the specifiedEndpointGroup
. -
of
public static EurekaEndpointGroup of(SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) Returns a newEurekaEndpointGroup
that retrieves theEndpoint
list from the specifiedEndpointGroup
under the specifiedpath
. -
builder
Returns a newEurekaEndpointGroupBuilder
created with the specifiedeurekaUri
. -
builder
Returns a newEurekaEndpointGroupBuilder
created with the specifiedeurekaUri
. -
builder
public static EurekaEndpointGroupBuilder builder(SessionProtocol sessionProtocol, EndpointGroup endpointGroup) Returns a newEurekaEndpointGroupBuilder
created with the specifiedSessionProtocol
andEndpointGroup
. -
builder
public static EurekaEndpointGroupBuilder builder(SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path) Returns a newEurekaEndpointGroupBuilder
created with the specifiedSessionProtocol
,EndpointGroup
and path. -
doCloseAsync
Description copied from class:DynamicEndpointGroup
Override this method to release the resources held by thisEndpointGroup
and complete the specifiedCompletableFuture
.- Overrides:
doCloseAsync
in classDynamicEndpointGroup
-
toString
- Overrides:
toString
in classDynamicEndpointGroup
-