Class: TencentCloud::Eb::V20210416::RetryPolicy

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210416/models.rb

Overview

用来描述一个ckafka投递目标的重试策略

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(retryinterval = nil, maxretryattempts = nil) ⇒ RetryPolicy

Returns a new instance of RetryPolicy.



2007
2008
2009
2010
# File 'lib/v20210416/models.rb', line 2007

def initialize(retryinterval=nil, maxretryattempts=nil)
  @RetryInterval = retryinterval
  @MaxRetryAttempts = maxretryattempts
end

Instance Attribute Details

#MaxRetryAttemptsObject

Parameters:

  • RetryInterval:

    重试间隔 单位:秒

  • MaxRetryAttempts:

    最大重试次数



2005
2006
2007
# File 'lib/v20210416/models.rb', line 2005

def MaxRetryAttempts
  @MaxRetryAttempts
end

#RetryIntervalObject

Parameters:

  • RetryInterval:

    重试间隔 单位:秒

  • MaxRetryAttempts:

    最大重试次数



2005
2006
2007
# File 'lib/v20210416/models.rb', line 2005

def RetryInterval
  @RetryInterval
end

Instance Method Details

#deserialize(params) ⇒ Object



2012
2013
2014
2015
# File 'lib/v20210416/models.rb', line 2012

def deserialize(params)
  @RetryInterval = params['RetryInterval']
  @MaxRetryAttempts = params['MaxRetryAttempts']
end