> + > + // Create a container > + final String containerName = UUID. randomUUID().toString() + > "_interruptionExample"; > + blobstore.createContainerInLocation(null, containerName); // Create a > vault > + > + // Create a blob > + ByteSource payload = ByteSource.wrap("data".getBytes(Charsets.UTF_8)); > + Blob blob = blobstore.blobBuilder("ignored") // The blob name is > ignored in Glacier > + .payload(payload) > + .contentLength(payload.size()) > + .build(); > + > + // Put the blob in the container > + final String blobId = blobstore.putBlob(containerName, blob); > + > + // New thread
It is useless in this specific example, but most callers will work with an `ExecutorService` and `Future`. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-examples/pull/58/files#r16034877