> +
> + disks[0] = osProperties.get("name");
> + disks[1] = datadiskObject.get("name");
> +
> + }
> + return true;
> + }
> + return false;
> + }
> + catch (Exception e) {
> + return false;
> + }
> + }
> + }, 15 * 1000 /* 15 second timeout */).apply(uri);
> +
> + }
With this approach the method is blocking all the time and returning a future
that returns immediately. Instead, the heavy logic should be done by the future
to avoid blocking users with this potentially expensive operation.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/291/files/8a39037237f5cccc7d100bc58a9a82bdb89924b1#r67882653