Loading...
Searching...
No Matches
MqEnvS Struct Reference

MqEnvS - the class known as env or environment is used to store the protected environment in an service-call … More...

#include <LibMqMsgque_mq.h>

+ Collaboration diagram for MqEnvS:

Data Fields

union { 
 
   struct MkObjectS   obj 
 
super 
 
MQ_HDL transSId
 storage for the shortterm-transaction
 
enum MqHandShakeE handShake
 what kind of call is it: S)tart, O)k or E)rror
 
enum MqTransTypeE transType
 what kind of transaction is it: W)ait, T)rans, S)ub, C)allback or N)o
 
MQ_LTR transLId
 longterm-transaction-id (rowid from readTrans table)
used for persistent-transaction
 
MQ_LTR rmtTransLId
 remote transaction-id (rowid from the remote readTrans table)
if ">0LL" -> the value to use or "OLL" -> get value from the database
 
MQ_HDL routeId
 TODO: route-id remote or local. (rowid from the Routing-Table)
if "0" -> the default route is used)
 
struct MqEnvSlink
 work together with MqEnvProtect and MqEnvRestore
 
struct { 
 
   bool   SIdLck: 1 
 Short-Term-Transaction-Lock -> the "transSId" was already used. More...
 
   bool   LIdLck: 1 
 Long-Term-Transaction-Lock -> the "transLId" was forwarded. More...
 
bits 
 

Detailed Description

MqEnvS - the class known as env or environment is used to store the protected environment in an service-call …

This struct hold parsed parts of the package-header and is guaranteed to be restored after the service-call.

  • -> INCOMMING service call
    • -> SAVE struct MqEnvS
      • ... do some work...
    • <- RESTORE struct MqEnvS
  • <- LEAVING service call

read more at: MqContextC_EnvApi_C_API

Definition at line 768 of file LibMqMsgque_mq.h.

Field Documentation

◆ [struct]

struct { ... } MqEnvS::bits

◆ handShake

enum MqHandShakeE MqEnvS::handShake

what kind of call is it: S)tart, O)k or E)rror

Definition at line 778 of file LibMqMsgque_mq.h.

◆ LIdLck

bool MqEnvS::LIdLck

Long-Term-Transaction-Lock -> the "transLId" was forwarded.

Definition at line 786 of file LibMqMsgque_mq.h.

◆ link

struct MqEnvS* MqEnvS::link

work together with MqEnvProtect and MqEnvRestore

Definition at line 783 of file LibMqMsgque_mq.h.

◆ obj

struct MkObjectS MqEnvS::obj

Definition at line 772 of file LibMqMsgque_mq.h.

◆ rmtTransLId

MQ_LTR MqEnvS::rmtTransLId

remote transaction-id (rowid from the remote readTrans table)
if ">0LL" -> the value to use or "OLL" -> get value from the database

Definition at line 781 of file LibMqMsgque_mq.h.

◆ routeId

MQ_HDL MqEnvS::routeId

TODO: route-id remote or local. (rowid from the Routing-Table)
if "0" -> the default route is used)

Definition at line 782 of file LibMqMsgque_mq.h.

◆ SIdLck

bool MqEnvS::SIdLck

Short-Term-Transaction-Lock -> the "transSId" was already used.

Definition at line 785 of file LibMqMsgque_mq.h.

◆ [union]

union { ... } MqEnvS::super

◆ transLId

MQ_LTR MqEnvS::transLId

longterm-transaction-id (rowid from readTrans table)
used for persistent-transaction

Definition at line 780 of file LibMqMsgque_mq.h.

◆ transSId

MQ_HDL MqEnvS::transSId

storage for the shortterm-transaction

Definition at line 777 of file LibMqMsgque_mq.h.

◆ transType

enum MqTransTypeE MqEnvS::transType

what kind of transaction is it: W)ait, T)rans, S)ub, C)allback or N)o

Definition at line 779 of file LibMqMsgque_mq.h.


The documentation for this struct was generated from the following file: