Class: Couchbase::Protostellar::Retry::Action Private

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

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

#durationObject (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_retryObject

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