theLink 10.0
Loading...
Searching...
No Matches
MqContextC_SendApi_Basics_ATL_API

MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-serviceMore...

+ Collaboration diagram for MqContextC_SendApi_Basics_ATL_API:

Functions

static OT_ProcRet atlmqmsgque_MqContextC_SendEND (MqContextC_ARGS)
  Atl: MqContextC::SendEND $ctx token:string[4] ?timeout:MkTimeoutE|int32=DEFAULT? C-API
MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service
 
static OT_ProcRet atlmqmsgque_MqContextC_SendEND_AND_CALLBACK (MqContextC_ARGS)
  Atl: MqContextC::SendEND_AND_CALLBACK $ctx token:string[4] callback:callable ?timeout:MkTimeoutE|int32=DEFAULT? C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
static OT_ProcRet atlmqmsgque_MqContextC_SendEND_AND_SUB (MqContextC_ARGS)
  Atl: MqContextC::SendEND_AND_SUB $ctx token:string[4] callback:callable ?timeout:MkTimeoutE|int32=DEFAULT? C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
static OT_ProcRet atlmqmsgque_MqContextC_SendEND_AND_TRANSACTION (MqContextC_ARGS)
  Atl: MqContextC::SendEND_AND_TRANSACTION $ctx token:string[4] callback:string[4] ?timeout:MkTimeoutE|int32=DEFAULT? C-API
finish the send-data-block, call the remote service to do a longterm-transaction-call
 
static OT_ProcRet atlmqmsgque_MqContextC_SendEND_AND_WAIT (MqContextC_ARGS)
  Atl: MqContextC::SendEND_AND_WAIT $ctx token:string[4] ?timeout:MkTimeoutE|int32=DEFAULT? C-API
finish the send-data-block, call the remote service and wait for result…
 
static OT_ProcRet atlmqmsgque_MqContextC_SendSTART (MqContextC_ARGS)
  Atl: MqContextC::SendSTART $ctx C-API
initialize the send-data-package. …
 
static OT_ProcRet atlmqmsgque_MqContextC_SendSYNC (MqContextC_ARGS)
  Atl: MqContextC::SendSYNC $ctx C-API
garantee that all pending asynchronous-service-calls are processed. …
 

Detailed Description

MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service

calling a remote service and wait timeout seconds for an result. If timeout == 0 it is an asynchronous-service-call and if the timeout > 0 it is a synchronous-service-call.

service-call blocking timeout
synchronous yes timeout > 0
asynchronous no timeout == 0

blocking mean waiting max timeout seconds to finishing the service-call:

If an error was raised on the server during the service-processing… the following error-handling will be available

  1. on a synchronous-service-call the error will be the result of the service-call
  2. on a asynchronous-service-call with callback the error will be the result of the callback
  3. on a asynchronous-service-call without callback the error will be send asynchronous from the server to the client . On the client the error will be raised on the NEXT event-handlng-command or as background-error if the MqSetupS::BgError function was defined.
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[in]tokenthe MqContextC SERVICE API to identify the service
[in]timeoutin seconds until a timeout-error is raised (possible values like ProcessEvent) (MK_TIMEOUT_DEFAULT=0)
Exceptions
MkExceptionC→ The default-exception from the Programming-Language-Micro-Kernel (PLMK)
See also
MqSendSYNC

Function Documentation

◆ atlmqmsgque_MqContextC_SendEND()

static OT_ProcRet atlmqmsgque_MqContextC_SendEND ( MqContextC_ARGS )
static

Atl: MqContextC::SendEND $ctx token:string[4] ?timeout:MkTimeoutE|int32=DEFAULT? C-API
MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service

Definition at line 2792 of file MqContextC_atl.c.

2792 {
2795 MQ_TOK token = 0;
2802 goto end;
2803 error:
2805 end:
2807}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_CHECK_STRN(val)
#define OT_SETUP_hdl
#define SendEND_doc
#define error
Definition high_lng.h:339
MK_TIMEOUT_DEFAULT
time_t MK_TIME_T
#define MqSendEND(...)
MK_STRN MQ_TOK
MqContextC - a char[4+1] or hex[8+1] string used to unique identify a service …
MK_STRB token[9]
Definition high_lng.h:229
MK_TIME_T timeout
Definition high_lng.h:133
#define OT_CHECK_TIME_T(val)

◆ atlmqmsgque_MqContextC_SendEND_AND_CALLBACK()

static OT_ProcRet atlmqmsgque_MqContextC_SendEND_AND_CALLBACK ( MqContextC_ARGS )
static

Atl: MqContextC::SendEND_AND_CALLBACK $ctx token:string[4] callback:callable ?timeout:MkTimeoutE|int32=DEFAULT? C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 2810 of file MqContextC_atl.c.

2810 {
2813 MQ_TOK token = 0;
2815 OT_SETUP_CALLABLE(callback)
2820 MkErrorC_Check(hdl,MqSendEND_AND_CALLBACK (hdl, token, NS(ServiceCall), callback, NS(ServiceFree), timeout));
2822 goto end;
2823 error:
2825 end:
2826 OT_CLEANUP_CALLABLE(callback)
2828}
#define NS(n)
#define SendEND_AND_CALLBACK_doc
#define MqSendEND_AND_CALLBACK(...)
#define OT_CHECK_CALLABLE(val)
#define OT_CLEANUP_CALLABLE(val)
#define OT_SETUP_CALLABLE(val)

◆ atlmqmsgque_MqContextC_SendEND_AND_SUB()

static OT_ProcRet atlmqmsgque_MqContextC_SendEND_AND_SUB ( MqContextC_ARGS )
static

Atl: MqContextC::SendEND_AND_SUB $ctx token:string[4] callback:callable ?timeout:MkTimeoutE|int32=DEFAULT? C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 2831 of file MqContextC_atl.c.

2831 {
2834 MQ_TOK token = 0;
2836 OT_SETUP_CALLABLE(callback)
2841 MkErrorC_Check(hdl,MqSendEND_AND_SUB (hdl, token, NS(ServiceCall), callback, NS(ServiceFree), timeout));
2843 goto end;
2844 error:
2846 end:
2847 OT_CLEANUP_CALLABLE(callback)
2849}
#define SendEND_AND_SUB_doc
#define MqSendEND_AND_SUB(...)

◆ atlmqmsgque_MqContextC_SendEND_AND_TRANSACTION()

static OT_ProcRet atlmqmsgque_MqContextC_SendEND_AND_TRANSACTION ( MqContextC_ARGS )
static

Atl: MqContextC::SendEND_AND_TRANSACTION $ctx token:string[4] callback:string[4] ?timeout:MkTimeoutE|int32=DEFAULT? C-API
finish the send-data-block, call the remote service to do a longterm-transaction-call

Definition at line 2852 of file MqContextC_atl.c.

2852 {
2855 MQ_TOK token = 0;
2857 MQ_TOK callback = 0;
2864 goto end;
2865 error:
2867 end:
2869}
#define SendEND_AND_TRANSACTION_doc
#define MqSendEND_AND_TRANSACTION(...)

◆ atlmqmsgque_MqContextC_SendEND_AND_WAIT()

static OT_ProcRet atlmqmsgque_MqContextC_SendEND_AND_WAIT ( MqContextC_ARGS )
static

Atl: MqContextC::SendEND_AND_WAIT $ctx token:string[4] ?timeout:MkTimeoutE|int32=DEFAULT? C-API
finish the send-data-block, call the remote service and wait for result…

Definition at line 2872 of file MqContextC_atl.c.

2872 {
2875 MQ_TOK token = 0;
2882 goto end;
2883 error:
2885 end:
2887}
#define SendEND_AND_WAIT_doc
#define MqSendEND_AND_WAIT(...)

◆ atlmqmsgque_MqContextC_SendSTART()

static OT_ProcRet atlmqmsgque_MqContextC_SendSTART ( MqContextC_ARGS )
static

Atl: MqContextC::SendSTART $ctx C-API
initialize the send-data-package. …

Definition at line 2890 of file MqContextC_atl.c.

2890 {
2894 MkErrorC_Check(hdl,MqSendSTART (hdl));
2896 goto end;
2897 error:
2899 end:
2901}
#define OT_SETUP_NOARG(d)
#define SendSTART_doc
#define MqSendSTART(...)

◆ atlmqmsgque_MqContextC_SendSYNC()

static OT_ProcRet atlmqmsgque_MqContextC_SendSYNC ( MqContextC_ARGS )
static

Atl: MqContextC::SendSYNC $ctx C-API
garantee that all pending asynchronous-service-calls are processed. …

Definition at line 2904 of file MqContextC_atl.c.

2904 {
2908 MkErrorC_Check(hdl,MqSendSYNC (hdl));
2910 goto end;
2911 error:
2913 end:
2915}
#define SendSYNC_doc
#define MqSendSYNC(...)