Class: Temporalio::Client::Connection::KeepAliveOptions
- Inherits:
-
Object
- Object
- Temporalio::Client::Connection::KeepAliveOptions
- 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
-
#interval ⇒ Float
Interval to send HTTP2 keep alive pings, default 30.0.
-
#timeout ⇒ Float
Timeout that the keep alive must be responded to within or the connection will be closed, default 15.0.
Instance Method Summary collapse
-
#initialize(interval: 30.0, timeout: 15.0) ⇒ KeepAliveOptions
constructor
A new instance of KeepAliveOptions.
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
#interval ⇒ Float
Returns 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 |
#timeout ⇒ Float
Returns 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 |