public Integer getVirtualPort() {
        return virtualPort;
    }
Sets onConnect.

@param onConnect the onConnect
@return the onConnect
core/api/src/main/java/com/alipay/sofa/rpc/config/ServerConfig.java