public ServiceFuture<List<ExpressRouteCrossConnectionPeeringInner>> listAsync(final String resourceGroupName, final String crossConnectionName, final ListOperationCallback<ExpressRouteCrossConnectionPeeringInner> serviceCallback) {
        return AzureServiceFuture.fromPageResponse(
            listSinglePageAsync(resourceGroupName, crossConnectionName),
            new Func1<String, Observable<ServiceResponse<Page<ExpressRouteCrossConnectionPeeringInner>>>>() {
                @Override
                public Observable<ServiceResponse<Page<ExpressRouteCrossConnectionPeeringInner>>> call(String nextPageLink) {
                    return listNextSinglePageAsync(nextPageLink);
                }
            },
            serviceCallback);
    }
public ServiceFuture < List < ExpressRouteCrossConnectionPeeringInner > > listAsync ( final String resourceGroupName , final String crossConnectionName , final ListOperationCallback < ExpressRouteCrossConnectionPeeringInner > serviceCallback ) { return AzureServiceFuture . fromPageResponse ( listSinglePageAsync ( resourceGroupName , crossConnectionName ) , new Func1 < String , Observable < ServiceResponse < Page < ExpressRouteCrossConnectionPeeringInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < ExpressRouteCrossConnectionPeeringInner > > > call ( String nextPageLink ) { return listNextSinglePageAsync ( nextPageLink ) ; } } , serviceCallback ) ; }
Gets all peerings in a specified ExpressRouteCrossConnection.

@param resourceGroupName The name of the resource group.
@param crossConnectionName The name of the ExpressRouteCrossConnection.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object