Class: Aws::S3::MultipartFileUploader::PartList Private
- Inherits:
-
Object
- Object
- Aws::S3::MultipartFileUploader::PartList
- Defined in:
- lib/aws-sdk-resources/services/s3/multipart_file_uploader.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
-
#initialize(parts = []) ⇒ PartList
constructor
private
A new instance of PartList.
- #push(part) ⇒ Object private
- #shift ⇒ Object private
- #to_a ⇒ 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.
141 142 143 144 |
# File 'lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb', line 141 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.
154 155 156 |
# File 'lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb', line 154 def clear! @mutex.synchronize { @parts.clear } end |
#push(part) ⇒ 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.
146 147 148 |
# File 'lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb', line 146 def push(part) @mutex.synchronize { @parts.push(part) } 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.
150 151 152 |
# File 'lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb', line 150 def shift @mutex.synchronize { @parts.shift } end |
#to_a ⇒ 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.
158 159 160 |
# File 'lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb', line 158 def to_a @mutex.synchronize { @parts.dup } end |