Class: Mongo::Retryable::BaseWorker Private
- Inherits:
-
Object
- Object
- Mongo::Retryable::BaseWorker
- Extended by:
- Forwardable
- Defined in:
- build/ruby-driver-v2.19/lib/mongo/retryable/base_worker.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.
The abstract superclass for workers employed by Mongo::Retryable.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#retryable ⇒ Mongo::Retryable
readonly
private
Retryable A reference to the client object that instatiated this worker.
Instance Method Summary collapse
-
#initialize(retryable) ⇒ BaseWorker
constructor
private
Constructs a new worker.
Constructor Details
#initialize(retryable) ⇒ BaseWorker
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.
Constructs a new worker.
46 47 48 |
# File 'build/ruby-driver-v2.19/lib/mongo/retryable/base_worker.rb', line 46 def initialize(retryable) @retryable = retryable end |
Instance Attribute Details
#retryable ⇒ Mongo::Retryable (readonly)
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 retryable A reference to the client object that instatiated this worker.
34 35 36 |
# File 'build/ruby-driver-v2.19/lib/mongo/retryable/base_worker.rb', line 34 def retryable @retryable end |