Class: RabbitMQ::FFI::ConnectionTune Private

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/rabbitmq/ffi/gen/connection_tune.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.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.idObject

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.



11
12
13
# File 'lib/rabbitmq/ffi/gen/connection_tune.rb', line 11

def self.id
  :connection_tune
end

Instance Method Details

#apply(channel_max: nil, frame_max: nil, heartbeat: nil) ⇒ 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.



19
20
21
22
23
24
# File 'lib/rabbitmq/ffi/gen/connection_tune.rb', line 19

def apply(channel_max: nil, frame_max: nil, heartbeat: nil)
  self[:channel_max] = Integer(channel_max) if channel_max
  self[:frame_max] = Integer(frame_max) if frame_max
  self[:heartbeat] = Integer(heartbeat) if heartbeat
  self
end

#free!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.



34
35
# File 'lib/rabbitmq/ffi/gen/connection_tune.rb', line 34

def free!
end

#idObject

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.



15
16
17
# File 'lib/rabbitmq/ffi/gen/connection_tune.rb', line 15

def id
  :connection_tune
end

#to_h(free = false) ⇒ 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.



26
27
28
29
30
31
32
# File 'lib/rabbitmq/ffi/gen/connection_tune.rb', line 26

def to_h(free=false)
  {
    channel_max: self[:channel_max],
    frame_max: self[:frame_max],
    heartbeat: self[:heartbeat]
  }
end