Class: Couchbase::Protostellar::Retry::Action Private
- Inherits:
-
Object
- Object
- Couchbase::Protostellar::Retry::Action
- Defined in:
- lib/couchbase/protostellar/retry/action.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 Attribute Summary collapse
- #duration ⇒ Object readonly private
Class Method Summary collapse
- .no_retry ⇒ Object private
- .with_duration(duration) ⇒ Object private
Instance Method Summary collapse
-
#initialize(duration) ⇒ Action
constructor
private
A new instance of Action.
Constructor Details
#initialize(duration) ⇒ Action
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 Action.
24 25 26 |
# File 'lib/couchbase/protostellar/retry/action.rb', line 24 def initialize(duration) @duration = duration end |
Instance Attribute Details
#duration ⇒ Object (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.
22 23 24 |
# File 'lib/couchbase/protostellar/retry/action.rb', line 22 def duration @duration end |
Class Method Details
.no_retry ⇒ 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.
32 33 34 |
# File 'lib/couchbase/protostellar/retry/action.rb', line 32 def self.no_retry Action.new(nil) end |
.with_duration(duration) ⇒ 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.
28 29 30 |
# File 'lib/couchbase/protostellar/retry/action.rb', line 28 def self.with_duration(duration) Action.new(duration) end |