theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ReadApi_Misc_JV_API

MqContextC - various functions to work on a read-data-packageMore...

+ Collaboration diagram for MqContextC_ReadApi_Misc_JV_API:

Functions

native void jvmqmsgque.MqContextC.ReadDbg ()
 ReadDbg
 
native MkTypeE jvmqmsgque.MqContextC.ReadGetNextType ()
  Java: MkTypeE ctx.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the read-data-buffer or "0" if not available
 
native int jvmqmsgque.MqContextC.ReadGetNumItems ()
  Java: int ctx.ReadGetNumItems() C-API
get the number of items left in the read-data-package
 
native boolean jvmqmsgque.MqContextC.ReadItemExists ()
  Java: boolean ctx.ReadItemExists() C-API
check if an item exists in the read-data-package
 
native void jvmqmsgque.MqContextC.ReadUndo ()
  Java: ctx.ReadUndo() C-API
undo the last MqContextC READ API function call …
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ReadDbg (JNIEnv *env, jobject self)
 ReadDbg
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ReadGetNextType (JNIEnv *env, jobject self)
  Java: MkTypeE ctx.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the read-data-buffer or "0" if not available
 
JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_ReadGetNumItems (JNIEnv *env, jobject self)
  Java: int ctx.ReadGetNumItems() C-API
get the number of items left in the read-data-package
 
JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ReadItemExists (JNIEnv *env, jobject self)
  Java: boolean ctx.ReadItemExists() C-API
check if an item exists in the read-data-package
 
JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ReadUndo (JNIEnv *env, jobject self)
  Java: ctx.ReadUndo() C-API
undo the last MqContextC READ API function call …
 

Detailed Description

MqContextC - various functions to work on a read-data-package

Function Documentation

◆ Java_jvmqmsgque_MqContextC_ReadDbg()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ReadDbg ( JNIEnv * env,
jobject self )

ReadDbg

Definition at line 1593 of file MqContextC_jv.c.

1593 {
1594 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1595 JavaErrorCheck;
1596 MkRtSetup_X(hdl);
1597 MqReadDbg(hdl);
1598error:
1599 return;
1600}
#define MkRtSetup_X(x)
struct MqContextS * MQ_CTX
class-shortcut for struct MqContextS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MqReadDbg(...)
PUBLIC data structure for the jvmqmsgque-specific-data

◆ Java_jvmqmsgque_MqContextC_ReadGetNextType()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqContextC_ReadGetNextType ( JNIEnv * env,
jobject self )

Java: MkTypeE ctx.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the read-data-buffer or "0" if not available

Definition at line 1603 of file MqContextC_jv.c.

1603 {
1604 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1605 JavaErrorCheck;
1606 MkRtSetup_X(hdl);
1607 enum MkTypeE __retVal__L = MqReadGetNextType(hdl);
1608 jobject __retVal__S = MK(pGetEnumFromString)(env,MK(Class_MkTypeE),"Ljvmqmsgque/MkTypeE;",MkTypeE_ToString(__retVal__L));
1609 return __retVal__S;
1610error:
1611 return 0;
1612}
MK_STRN MkTypeE_ToString(enum MkTypeE value)
MkTypeE
enum MkTypeE MqReadGetNextType(MQ_CTX const ctx)
get the type (MkTypeE) of the next Item in the read-data-buffer or "0" if not available

◆ Java_jvmqmsgque_MqContextC_ReadGetNumItems()

JNIEXPORT jint JNICALL Java_jvmqmsgque_MqContextC_ReadGetNumItems ( JNIEnv * env,
jobject self )

Java: int ctx.ReadGetNumItems() C-API
get the number of items left in the read-data-package

Definition at line 1615 of file MqContextC_jv.c.

1615 {
1616 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1617 JavaErrorCheck;
1618 MkRtSetup_X(hdl);
1619 MK_NUM __retVal__L = MqReadGetNumItems(hdl);
1620 jint __retVal__S = __retVal__L;
1621 return __retVal__S;
1622error:
1623 return 0;
1624}
int32_t MK_NUM
MK_NUM MqReadGetNumItems(MQ_CTX const ctx)
get the number of items left in the read-data-package …

◆ Java_jvmqmsgque_MqContextC_ReadItemExists()

JNIEXPORT jboolean JNICALL Java_jvmqmsgque_MqContextC_ReadItemExists ( JNIEnv * env,
jobject self )

Java: boolean ctx.ReadItemExists() C-API
check if an item exists in the read-data-package

Definition at line 1627 of file MqContextC_jv.c.

1627 {
1628 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1629 JavaErrorCheck;
1630 MkRtSetup_X(hdl);
1631 MK_BOOL __retVal__L = MqReadItemExists(hdl);
1632 jboolean __retVal__S = __retVal__L;
1633 return __retVal__S;
1634error:
1635 return 0;
1636}
bool MK_BOOL
bool MqReadItemExists(MQ_CTX const ctx)
check if an item exists in the read-data-package …

◆ Java_jvmqmsgque_MqContextC_ReadUndo()

JNIEXPORT void JNICALL Java_jvmqmsgque_MqContextC_ReadUndo ( JNIEnv * env,
jobject self )

Java: ctx.ReadUndo() C-API
undo the last MqContextC READ API function call …

Definition at line 1639 of file MqContextC_jv.c.

1639 {
1640 MQ_CTX hdl = (MQ_CTX)pObj2Hdl(env,"MqContextC",self);
1641 JavaErrorCheck;
1642 MkRtSetup_X(hdl);
1643 enum MkErrorE errVal = MqReadUndo(hdl);
1644 MkErrorC_Check(hdl, errVal)
1645error:
1646 return;
1647}
MkErrorE
#define MqReadUndo(...)

◆ ReadDbg()

native void jvmqmsgque.MqContextC.ReadDbg ( )

◆ ReadGetNextType()

native MkTypeE jvmqmsgque.MqContextC.ReadGetNextType ( )

Java: MkTypeE ctx.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the read-data-buffer or "0" if not available

◆ ReadGetNumItems()

native int jvmqmsgque.MqContextC.ReadGetNumItems ( )

Java: int ctx.ReadGetNumItems() C-API
get the number of items left in the read-data-package

◆ ReadItemExists()

native boolean jvmqmsgque.MqContextC.ReadItemExists ( )

Java: boolean ctx.ReadItemExists() C-API
check if an item exists in the read-data-package

◆ ReadUndo()

native void jvmqmsgque.MqContextC.ReadUndo ( )

Java: ctx.ReadUndo() C-API
undo the last MqContextC READ API function call …