code: public PagedList<ExpressRouteCrossConnectionPeeringInner> list(final String resourceGroupName, final String crossConnectionName) {
          ServiceResponse<Page<ExpressRouteCrossConnectionPeeringInner>> response = listSinglePageAsync(resourceGroupName, crossConnectionName).toBlocking().single();
          return new PagedList<ExpressRouteCrossConnectionPeeringInner>(response.body()) {
              @Override
              public Page<ExpressRouteCrossConnectionPeeringInner> nextPage(String nextPageLink) {
                  return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets all peerings in a specified ExpressRouteCrossConnection.
  
  @param resourceGroupName The name of the resource group.
  @param crossConnectionName The name of the ExpressRouteCrossConnection.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;ExpressRouteCrossConnectionPeeringInner&gt; object if successful.