jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458:Added Blobstore Abstraction (#48)
Date Sat, 20 Sep 2014 03:27:55 GMT
> +   long defaultPartSize = DEFAULT_PART_SIZE;
> +
> +   @Inject(optional = true)
> +   @Named("jclouds.mpu.parts.magnitude")
> +   @VisibleForTesting
> +   int magnitudeBase = DEFAULT_MAGNITUDE_BASE;
> +
> +   // calculated only once, but not from the constructor
> +   private volatile int parts; // required number of parts with chunkSize
> +   private volatile long chunkSize;
> +   private volatile long remaining; // number of bytes remained for the last part
> +
> +   // sequentially updated values
> +   private volatile int part;
> +   private volatile long chunkOffset;
> +   private volatile long copied;

Is this going to be used concurrently?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/48/files#r17817599
Mime
View raw message