public ServiceFuture<ConnectivityInformationInner> checkConnectivityAsync(String resourceGroupName, String networkWatcherName, ConnectivityParameters parameters, final ServiceCallback<ConnectivityInformationInner> serviceCallback) {
        return ServiceFuture.fromResponse(checkConnectivityWithServiceResponseAsync(resourceGroupName, networkWatcherName, parameters), serviceCallback);
    }
public ServiceFuture < ConnectivityInformationInner > checkConnectivityAsync ( String resourceGroupName , String networkWatcherName , ConnectivityParameters parameters , final ServiceCallback < ConnectivityInformationInner > serviceCallback ) { return ServiceFuture . fromResponse ( checkConnectivityWithServiceResponseAsync ( resourceGroupName , networkWatcherName , parameters ) , serviceCallback ) ; }
Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server.

@param resourceGroupName The name of the network watcher resource group.
@param networkWatcherName The name of the network watcher resource.
@param parameters Parameters that determine how the connectivity check will be performed.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object