Class: Aws::S3::FileDownloader::PartList Private
- Inherits:
-
Object
- Object
- Aws::S3::FileDownloader::PartList
- Includes:
- Enumerable
- Defined in:
- lib/aws-sdk-s3/file_downloader.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #clear! ⇒ Object private
- #each(&block) ⇒ Object private
-
#initialize(parts = []) ⇒ PartList
constructor
private
A new instance of PartList.
- #shift ⇒ Object private
- #size ⇒ Object private
Constructor Details
#initialize(parts = []) ⇒ PartList
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of PartList.
231 232 233 234 |
# File 'lib/aws-sdk-s3/file_downloader.rb', line 231 def initialize(parts = []) @parts = parts @mutex = Mutex.new end |
Instance Method Details
#clear! ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
244 245 246 |
# File 'lib/aws-sdk-s3/file_downloader.rb', line 244 def clear! @mutex.synchronize { @parts.clear } end |
#each(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
248 249 250 |
# File 'lib/aws-sdk-s3/file_downloader.rb', line 248 def each(&block) @mutex.synchronize { @parts.each(&block) } end |
#shift ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
236 237 238 |
# File 'lib/aws-sdk-s3/file_downloader.rb', line 236 def shift @mutex.synchronize { @parts.shift } end |
#size ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
240 241 242 |
# File 'lib/aws-sdk-s3/file_downloader.rb', line 240 def size @mutex.synchronize { @parts.size } end |