Class: Temporalio::Client::Connection::TestService
- Defined in:
- lib/temporalio/client/connection/test_service.rb
Overview
TestService API.
Instance Method Summary collapse
-
#get_current_time(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::GetCurrentTimeResponse
Calls TestService.GetCurrentTime API call.
-
#lock_time_skipping(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::LockTimeSkippingResponse
Calls TestService.LockTimeSkipping API call.
-
#sleep(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::SleepResponse
Calls TestService.Sleep API call.
-
#sleep_until(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::SleepResponse
Calls TestService.SleepUntil API call.
-
#unlock_time_skipping(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::UnlockTimeSkippingResponse
Calls TestService.UnlockTimeSkipping API call.
-
#unlock_time_skipping_with_sleep(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::SleepResponse
Calls TestService.UnlockTimeSkippingWithSleep API call.
Methods inherited from Service
Instance Method Details
#get_current_time(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::GetCurrentTimeResponse
Calls TestService.GetCurrentTime API call.
99 100 101 102 103 104 105 106 107 |
# File 'lib/temporalio/client/connection/test_service.rb', line 99 def get_current_time(request, rpc_options: nil) invoke_rpc( rpc: 'get_current_time', request_class: Google::Protobuf::Empty, response_class: Temporalio::Api::TestService::V1::GetCurrentTimeResponse, request:, rpc_options: ) end |
#lock_time_skipping(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::LockTimeSkippingResponse
Calls TestService.LockTimeSkipping API call.
24 25 26 27 28 29 30 31 32 |
# File 'lib/temporalio/client/connection/test_service.rb', line 24 def lock_time_skipping(request, rpc_options: nil) invoke_rpc( rpc: 'lock_time_skipping', request_class: Temporalio::Api::TestService::V1::LockTimeSkippingRequest, response_class: Temporalio::Api::TestService::V1::LockTimeSkippingResponse, request:, rpc_options: ) end |
#sleep(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::SleepResponse
Calls TestService.Sleep API call.
54 55 56 57 58 59 60 61 62 |
# File 'lib/temporalio/client/connection/test_service.rb', line 54 def sleep(request, rpc_options: nil) invoke_rpc( rpc: 'sleep', request_class: Temporalio::Api::TestService::V1::SleepRequest, response_class: Temporalio::Api::TestService::V1::SleepResponse, request:, rpc_options: ) end |
#sleep_until(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::SleepResponse
Calls TestService.SleepUntil API call.
69 70 71 72 73 74 75 76 77 |
# File 'lib/temporalio/client/connection/test_service.rb', line 69 def sleep_until(request, rpc_options: nil) invoke_rpc( rpc: 'sleep_until', request_class: Temporalio::Api::TestService::V1::SleepUntilRequest, response_class: Temporalio::Api::TestService::V1::SleepResponse, request:, rpc_options: ) end |
#unlock_time_skipping(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::UnlockTimeSkippingResponse
Calls TestService.UnlockTimeSkipping API call.
39 40 41 42 43 44 45 46 47 |
# File 'lib/temporalio/client/connection/test_service.rb', line 39 def unlock_time_skipping(request, rpc_options: nil) invoke_rpc( rpc: 'unlock_time_skipping', request_class: Temporalio::Api::TestService::V1::UnlockTimeSkippingRequest, response_class: Temporalio::Api::TestService::V1::UnlockTimeSkippingResponse, request:, rpc_options: ) end |
#unlock_time_skipping_with_sleep(request, rpc_options: nil) ⇒ Temporalio::Api::TestService::V1::SleepResponse
Calls TestService.UnlockTimeSkippingWithSleep API call.
84 85 86 87 88 89 90 91 92 |
# File 'lib/temporalio/client/connection/test_service.rb', line 84 def unlock_time_skipping_with_sleep(request, rpc_options: nil) invoke_rpc( rpc: 'unlock_time_skipping_with_sleep', request_class: Temporalio::Api::TestService::V1::SleepRequest, response_class: Temporalio::Api::TestService::V1::SleepResponse, request:, rpc_options: ) end |