Class: Aws::S3::ObjectMultipartCopier::PartQueue Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-s3/object_multipart_copier.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

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.



164
165
166
167
# File 'lib/aws-sdk-s3/object_multipart_copier.rb', line 164

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.



173
174
175
# File 'lib/aws-sdk-s3/object_multipart_copier.rb', line 173

def clear!
  @mutex.synchronize { @parts.clear }
end

#shiftObject

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.



169
170
171
# File 'lib/aws-sdk-s3/object_multipart_copier.rb', line 169

def shift
  @mutex.synchronize { @parts.shift }
end