src/main/java/com/linecorp/armeria/client/routing/EndpointGroupRegistry.java
/**
     * Replace the exist server group registry.
     *
     * @throws EndpointGroupException if {@code groupName} not registered yet.
     */
Replace the exist server group registry.
@throws EndpointGroupException if  groupName not registered yet.
Replace the exist server group registry . @throws EndpointGroupException if groupName not registered yet .
public static void replace(String groupName, EndpointGroup endpointGroup,
                               EndpointSelectionStrategy endpointSelectionStrategy) {
        requireNonNull(groupName, "groupName");
        requireNonNull(endpointGroup, "group");
        requireNonNull(endpointSelectionStrategy, "endpointSelectionStrategy");
        if (serverGroups.replace(groupName, endpointSelectionStrategy.newSelector(endpointGroup)) == null) {
            throw new EndpointGroupException("non-existent EndpointGroup: " + groupName);
        }
    }
public static void replace ( String groupName , EndpointGroup endpointGroup , EndpointSelectionStrategy endpointSelectionStrategy ) { requireNonNull ( groupName , "groupName" ) ; requireNonNull ( endpointGroup , "group" ) ; requireNonNull ( endpointSelectionStrategy , "endpointSelectionStrategy" ) ; if ( serverGroups . replace ( groupName , endpointSelectionStrategy . newSelector ( endpointGroup ) ) == null ) { throw new EndpointGroupException ( "non-existent EndpointGroup: " + groupName ) ; } }
Replace the exist server group registry.
Replace the exist server group registry .