Class ConsulEndpointGroupBuilder

java.lang.Object
com.linecorp.armeria.client.endpoint.AbstractDynamicEndpointGroupBuilder
com.linecorp.armeria.client.consul.ConsulEndpointGroupBuilder
All Implemented Interfaces:
DynamicEndpointGroupSetters, ConsulConfigSetters

@UnstableApi public final class ConsulEndpointGroupBuilder extends AbstractDynamicEndpointGroupBuilder implements ConsulConfigSetters
A builder class for ConsulEndpointGroup.

Examples


 ConsulEndpointGroup endpointGroup = ConsulEndpointGroup.builder(consulUri, "myService")
                                                        .build();
 List<Endpoint> endpoints = endpointGroup.endpoints();
 sb.serverListener(listener);