Class: Temporalio::Client::RPCOptions
- Inherits:
-
Object
- Object
- Temporalio::Client::RPCOptions
- Defined in:
- lib/temporalio/client.rb
Overview
Set of RPC options for RPC calls.
Instance Attribute Summary collapse
-
#cancellation ⇒ Cancellation?
Cancellation to use to potentially cancel the call.
-
#metadata ⇒ Hash<String, String>?
Headers to include on the RPC call.
-
#override_retry ⇒ Boolean?
Whether to override the default retry option which decides whether to retry calls implicitly when known transient error codes are reached.
-
#timeout ⇒ Float?
Number of seconds before timeout of the RPC call.
Instance Method Summary collapse
-
#initialize(metadata: nil, timeout: nil, cancellation: nil, override_retry: nil) ⇒ RPCOptions
constructor
Create RPC options.
Constructor Details
#initialize(metadata: nil, timeout: nil, cancellation: nil, override_retry: nil) ⇒ RPCOptions
Create RPC options.
767 768 769 770 771 772 773 774 775 776 777 |
# File 'lib/temporalio/client.rb', line 767 def initialize( metadata: nil, timeout: nil, cancellation: nil, override_retry: nil ) = @timeout = timeout @cancellation = cancellation @override_retry = override_retry end |
Instance Attribute Details
#cancellation ⇒ Cancellation?
751 752 753 |
# File 'lib/temporalio/client.rb', line 751 def cancellation @cancellation end |
#metadata ⇒ Hash<String, String>?
744 745 746 |
# File 'lib/temporalio/client.rb', line 744 def end |
#override_retry ⇒ Boolean?
756 757 758 |
# File 'lib/temporalio/client.rb', line 756 def override_retry @override_retry end |
#timeout ⇒ Float?
747 748 749 |
# File 'lib/temporalio/client.rb', line 747 def timeout @timeout end |