Class: TencentCloud::Cls::V20201016::ConsumerGroup

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

Overview

kafka协议消费组信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group = nil, state = nil, protocolname = nil) ⇒ ConsumerGroup

Returns a new instance of ConsumerGroup.



1918
1919
1920
1921
1922
# File 'lib/v20201016/models.rb', line 1918

def initialize(group=nil, state=nil, protocolname=nil)
  @Group = group
  @State = state
  @ProtocolName = protocolname
end

Instance Attribute Details

#Group ⇒ Object

  • 常见均衡算法如下:
    • range:按分区范围分配
    • roundrobin:轮询式分配
    • sticky:粘性分配(避免不必要的重平衡)


1916
1917
1918
# File 'lib/v20201016/models.rb', line 1916

def Group
  @Group
end

#ProtocolName ⇒ Object

  • 常见均衡算法如下:
    • range:按分区范围分配
    • roundrobin:轮询式分配
    • sticky:粘性分配(避免不必要的重平衡)


1916
1917
1918
# File 'lib/v20201016/models.rb', line 1916

def ProtocolName
  @ProtocolName
end

#State ⇒ Object

  • 常见均衡算法如下:
    • range:按分区范围分配
    • roundrobin:轮询式分配
    • sticky:粘性分配(避免不必要的重平衡)


1916
1917
1918
# File 'lib/v20201016/models.rb', line 1916

def State
  @State
end

Instance Method Details

#deserialize(params) ⇒ Object



1924
1925
1926
1927
1928
# File 'lib/v20201016/models.rb', line 1924

def deserialize(params)
  @Group = params['Group']
  @State = params['State']
  @ProtocolName = params['ProtocolName']
end