Class: Aws::S3::ObjectMultipartCopier::PartQueue Private
- Inherits:
-
Object
- Object
- Aws::S3::ObjectMultipartCopier::PartQueue
- Defined in:
- lib/aws-sdk-s3/object_multipart_copier.rb
Overview
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.
A thread-safe work queue of part definitions for a multipart copy.
Instance Method Summary collapse
- #clear! ⇒ Object private
-
#initialize(parts = []) ⇒ PartQueue
constructor
private
A new instance of PartQueue.
- #shift ⇒ Object private
Constructor Details
#initialize(parts = []) ⇒ PartQueue
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 PartQueue.
285 286 287 288 |
# File 'lib/aws-sdk-s3/object_multipart_copier.rb', line 285 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.
294 295 296 |
# File 'lib/aws-sdk-s3/object_multipart_copier.rb', line 294 def clear! @mutex.synchronize { @parts.clear } 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.
290 291 292 |
# File 'lib/aws-sdk-s3/object_multipart_copier.rb', line 290 def shift @mutex.synchronize { @parts.shift } end |