Classes Files

Wombat::MamaQueue::NativeMethods

Public Functions

  Name
int mamaQueue_create(ref IntPtr result, IntPtr bridgeImpl)
int mamaQueue_canDestroy(IntPtr nativeHandle)
int mamaQueue_destroy(IntPtr nativeHandle)
int mamaQueue_destroyWait(IntPtr nativeHandle)
int mamaQueue_destroyTimedWait(IntPtr nativeHandle, long timeout)
int mamaQueue_setHighWatermark(IntPtr nativeHandle, int highWatermark)
int mamaQueue_getHighWatermark(IntPtr nativeHandle, ref int highWatermark)
int mamaQueue_setLowWatermark(IntPtr nativeHandle, int lowWatermark)
int mamaQueue_setQueueName(IntPtr nativeHandle, string name)
int mamaQueue_getLowWatermark(IntPtr nativeHandle, ref int lowWatermark)
int mamaQueue_getEventCount(IntPtr nativeHandle, ref int eventCount)
int mamaQueue_getQueueBridgeName(IntPtr nativeHandle, ref IntPtr name)
int mamaQueue_setQueueMonitorCallbacks(IntPtr nativeHandle, ref WatermarkCallbacks queueMonitorCallbacks, IntPtr closure)
int mamaQueue_dispatch(IntPtr nativeHandle)
int mamaQueue_dispatchEvent(IntPtr nativeHandle)
int mamaQueue_stopDispatch(IntPtr nativeHandle)
int mamaQueue_timedDispatch(IntPtr nativeHandle, ulong timeout)
int mamaQueue_setEnqueueCallback(IntPtr nativeHandle, EnqueueCallbackForwarder.EnqueueCallback callback, IntPtr closure)
int mamaQueue_enqueueEvent(IntPtr nativeHandle, EnqueueEventForwarder.EnqueueCallback callback, IntPtr closure)
Add an user event to a queue. Currently only supported using Wombat Middleware.

Public Functions Documentation

function mamaQueue_create

int mamaQueue_create(
    ref IntPtr result,
    IntPtr bridgeImpl
)

function mamaQueue_canDestroy

int mamaQueue_canDestroy(
    IntPtr nativeHandle
)

function mamaQueue_destroy

int mamaQueue_destroy(
    IntPtr nativeHandle
)

function mamaQueue_destroyWait

int mamaQueue_destroyWait(
    IntPtr nativeHandle
)

function mamaQueue_destroyTimedWait

int mamaQueue_destroyTimedWait(
    IntPtr nativeHandle,
    long timeout
)

function mamaQueue_setHighWatermark

int mamaQueue_setHighWatermark(
    IntPtr nativeHandle,
    int highWatermark
)

function mamaQueue_getHighWatermark

int mamaQueue_getHighWatermark(
    IntPtr nativeHandle,
    ref int highWatermark
)

function mamaQueue_setLowWatermark

int mamaQueue_setLowWatermark(
    IntPtr nativeHandle,
    int lowWatermark
)

function mamaQueue_setQueueName

int mamaQueue_setQueueName(
    IntPtr nativeHandle,
    string name
)

function mamaQueue_getLowWatermark

int mamaQueue_getLowWatermark(
    IntPtr nativeHandle,
    ref int lowWatermark
)

function mamaQueue_getEventCount

int mamaQueue_getEventCount(
    IntPtr nativeHandle,
    ref int eventCount
)

function mamaQueue_getQueueBridgeName

int mamaQueue_getQueueBridgeName(
    IntPtr nativeHandle,
    ref IntPtr name
)

function mamaQueue_setQueueMonitorCallbacks

int mamaQueue_setQueueMonitorCallbacks(
    IntPtr nativeHandle,
    ref WatermarkCallbacks queueMonitorCallbacks,
    IntPtr closure
)

function mamaQueue_dispatch

int mamaQueue_dispatch(
    IntPtr nativeHandle
)

function mamaQueue_dispatchEvent

int mamaQueue_dispatchEvent(
    IntPtr nativeHandle
)

function mamaQueue_stopDispatch

int mamaQueue_stopDispatch(
    IntPtr nativeHandle
)

function mamaQueue_timedDispatch

int mamaQueue_timedDispatch(
    IntPtr nativeHandle,
    ulong timeout
)

function mamaQueue_setEnqueueCallback

int mamaQueue_setEnqueueCallback(
    IntPtr nativeHandle,
    EnqueueCallbackForwarder.EnqueueCallback callback,
    IntPtr closure
)

function mamaQueue_enqueueEvent

int mamaQueue_enqueueEvent(
    IntPtr nativeHandle,
    EnqueueEventForwarder.EnqueueCallback callback,
    IntPtr closure
)

Add an user event to a queue. Currently only supported using Wombat Middleware.

Parameters:

  • nativeHandle The queue to which the event is to be added
  • callback The function to be invoked when the event fires.
  • closure Optional arbitrary user supplied data. Passed back to callback function.

Return: MAMA_STATUS_OK if the function succeeds.


Updated on 2023-03-31 at 15:29:32 +0100