Classes Files

com::wombat::mama::examples::MamaPublisherJava

More…

Inherits from com.wombat.mama.MamaPublisherCallback

Public Functions

  Name
void onCreate(MamaPublisher pub)
void onDestroy(MamaPublisher pub)
void onError(MamaPublisher pub, short status, String info)
void onSuccess(MamaPublisher pub, short status, String info)
void run(String[] args)
void main(String[] args)

Detailed Description

class com::wombat::mama::examples::MamaPublisherJava;

This sample application demonstrates how to publish mama messages, and respond to requests from a clients inbox.

It accepts the following command line arguments: [-s topic] The topic on which to send messages. Default value is “MAMA_TOPIC”. [-l topic] The topic on which to listen for inbound requests. Default is “MAMA_INBOUND_TOPIC”. [-i interval] The interval between messages .Default, 0.5. [-tport name] The transport parameters to be used from mama.properties. [-q] Quiet mode. Suppress output. [-c number] How many messages to publish (default infinite). [-pubCb] Listen for publisher callbacks.

Public Functions Documentation

function onCreate

inline void onCreate(
    MamaPublisher pub
)

Reimplements: com::wombat::mama::MamaPublisherCallback::onCreate

function onDestroy

inline void onDestroy(
    MamaPublisher pub
)

Reimplements: com::wombat::mama::MamaPublisherCallback::onDestroy

function onError

inline void onError(
    MamaPublisher pub,
    short status,
    String info
)

Reimplements: com::wombat::mama::MamaPublisherCallback::onError

function onSuccess

inline void onSuccess(
    MamaPublisher pub,
    short status,
    String info
)

Reimplements: com::wombat::mama::MamaPublisherCallback::onSuccess

function run

inline void run(
    String[] args
)

function main

static inline void main(
    String[] args
)

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