public class JobPredicates extends Object
public static <T> T awaitComplete(CloudDNSApi api, Job<T> job) throws TimeoutException
CreateDomain createDomain1 = CreateDomain.builder()
.name("jclouds-example.org")
.email("jclouds@jclouds-example.org")
.ttl(600001)
.comment("Hello Domain 1")
.build();
Iterable<CreateDomain> createDomains = ImmutableList.of(createDomain1);
Set<Domain> domains = awaitComplete(api, api.getDomainApi().create(createDomains));
TimeoutException
Copyright © 2009-2013 jclouds. All Rights Reserved.