src/main/java/com/linecorp/armeria/client/routing/EndpointGroupRegistry.java
/**
     * Register the server group.
     *
     * @throws EndpointGroupException if {@code groupName} has already been registered.
     */
Register the server group.
@throws EndpointGroupException if  groupName has already been registered.
Register the server group . @throws EndpointGroupException if groupName has already been registered .
public static void register(String groupName, EndpointGroup endpointGroup,
                                EndpointSelectionStrategy endpointSelectionStrategy) {
        requireNonNull(groupName, "groupName");
        requireNonNull(endpointGroup, "group");
        requireNonNull(endpointSelectionStrategy, "endpointSelectionStrategy");
        if (serverGroups.putIfAbsent(groupName, endpointSelectionStrategy.newSelector(endpointGroup)) != null) {
            throw new EndpointGroupException("A EndpointGroup with the same name exists: " + groupName);
        }
    }
public static void register ( String groupName , EndpointGroup endpointGroup , EndpointSelectionStrategy endpointSelectionStrategy ) { requireNonNull ( groupName , "groupName" ) ; requireNonNull ( endpointGroup , "group" ) ; requireNonNull ( endpointSelectionStrategy , "endpointSelectionStrategy" ) ; if ( serverGroups . putIfAbsent ( groupName , endpointSelectionStrategy . newSelector ( endpointGroup ) ) != null ) { throw new EndpointGroupException ( "A EndpointGroup with the same name exists: " + groupName ) ; } }
Register the server group.
Register the server group .