> +   GlacierClient client = context.unwrapApi(GlacierClient.class);
> +
> +   JobRequest archiveRetrievalJobRequest = 
> ArchiveRetrievalJobRequest.builder()
> +         .archiveId(key)
> +         .description("retrieval job")
> +         .build();
> +   String jobId = client.initiateJob(containerName, 
> archiveRetrievalJobRequest);
> +
> +   // Retrieve output when the job is done
> +   Payload result = client.getJobOutput(containerName, jobId);
> +} finally {
> +   context.close();
> +}
> +{% endhighlight %}
> +
> +### Interrupting a request

While interruption is an interesting example, is it a common one?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-site/pull/121/files#r16017513

Reply via email to