예제 #1
0
  private void deleteRecords(Domain domain) throws TimeoutException {
    System.out.format("Delete Records%n");

    Set<RecordDetail> recordDetails =
        dnsApi.getRecordApiForDomain(domain.getId()).listByType("TXT").concat().toSet();
    Iterable<String> recordIds = Iterables.transform(recordDetails, GET_RECORD_ID);

    awaitComplete(dnsApi, dnsApi.getRecordApiForDomain(domain.getId()).delete(recordIds));

    System.out.format("  Deleted %s records", Iterables.size(recordDetails));
  }
 @Override
 protected Function<Object, IterableWithMarker<RecordDetail>> markerToNextForArg0(
     Optional<Object> arg0) {
   int domainId = Integer.class.cast(arg0.get());
   return new ListRecordsAtMarker(api.getRecordApiForDomain(domainId));
 }