src/main/java/io/axoniq/axonserver/connector/AxonServerConnectionFactory.java
/**
     * Connects to the given {@code context} using the settings defined in this ConnectionFactory.
     *
     * @param context The name of the context to connect to
     *
     * @return a Connection allowing interaction with the mentioned context
     */
Connects to the given  context using the settings defined in this ConnectionFactory.
@param context The name of the context to connect to

@return a Connection allowing interaction with the mentioned context
Connects to the given context using the settings defined in this ConnectionFactory . @param context The name of the context to connect to @return a Connection allowing interaction with the mentioned context
public AxonServerConnection connect(String context) {
        if (shutdown) {
            throw new IllegalStateException("Connector is already shut down");
        }
        ContextConnection contextConnection = connections.computeIfAbsent(context, this::createConnection);
        contextConnection.connect();
        return contextConnection;
    }
public AxonServerConnection connect ( String context ) { if ( shutdown ) { throw new IllegalStateException ( "Connector is already shut down" ) ; } ContextConnection contextConnection = connections . computeIfAbsent ( context , this :: createConnection ) ; contextConnection . connect ( ) ; return contextConnection ; }
Connects to the given {@code context} using the settings defined in this ConnectionFactory.
Connects to the given { @code context } using the settings defined in this ConnectionFactory .