Class: Temporalio::Client::Connection::KeepAliveOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/client/connection.rb

Overview

Keep-alive options for client connections. For most users, the default is preferred.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interval: 30.0, timeout: 15.0) ⇒ KeepAliveOptions

Returns a new instance of KeepAliveOptions.



113
114
115
# File 'lib/temporalio/client/connection.rb', line 113

def initialize(interval: 30.0, timeout: 15.0)
  super
end

Instance Attribute Details

#intervalFloat

Returns Interval to send HTTP2 keep alive pings, default 30.0.

Returns:

  • (Float)

    Interval to send HTTP2 keep alive pings, default 30.0.



112
113
114
115
116
# File 'lib/temporalio/client/connection.rb', line 112

class KeepAliveOptions
  def initialize(interval: 30.0, timeout: 15.0)
    super
  end
end

#timeoutFloat

Returns Timeout that the keep alive must be responded to within or the connection will be closed, default 15.0.

Returns:

  • (Float)

    Timeout that the keep alive must be responded to within or the connection will be closed, default 15.0.



112
113
114
115
116
# File 'lib/temporalio/client/connection.rb', line 112

class KeepAliveOptions
  def initialize(interval: 30.0, timeout: 15.0)
    super
  end
end