Class: Temporalio::Client::Connection::PayloadLimitsOptions
- Inherits:
-
Data
- Object
- Data
- Temporalio::Client::Connection::PayloadLimitsOptions
- Defined in:
- lib/temporalio/client/connection.rb,
lib/temporalio/client/connection.rb
Overview
Note:
WARNING: Payload size-limit enforcement is experimental and the API may change in the future.
Payload size-limit options for client connections.
Instance Attribute Summary collapse
-
#memo_warn_size ⇒ Integer
Warning threshold, in bytes, for outbound memo size.
-
#payloads_warn_size ⇒ Integer
Warning threshold, in bytes, for the size of an outbound payload-bearing field.
Instance Method Summary collapse
-
#initialize(payloads_warn_size: 512 * 1024, memo_warn_size: 2 * 1024) ⇒ PayloadLimitsOptions
constructor
A new instance of PayloadLimitsOptions.
Constructor Details
#initialize(payloads_warn_size: 512 * 1024, memo_warn_size: 2 * 1024) ⇒ PayloadLimitsOptions
Returns a new instance of PayloadLimitsOptions.
190 191 192 |
# File 'lib/temporalio/client/connection.rb', line 190 def initialize(payloads_warn_size: 512 * 1024, memo_warn_size: 2 * 1024) super end |
Instance Attribute Details
#memo_warn_size ⇒ Integer
Returns Warning threshold, in bytes, for outbound memo size. Over-threshold memos are logged
but still sent to the server. Defaults to 2 KiB; 0 disables the warning.
189 190 191 |
# File 'lib/temporalio/client/connection.rb', line 189 def memo_warn_size @memo_warn_size end |
#payloads_warn_size ⇒ Integer
Returns Warning threshold, in bytes, for the size of an outbound payload-bearing field.
Over-threshold fields are logged but still sent to the server. Defaults to 512 KiB; 0 disables the
warning.
189 190 191 |
# File 'lib/temporalio/client/connection.rb', line 189 def payloads_warn_size @payloads_warn_size end |