Inherits from com.wombat.mama.MamaPublisherCallback
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) |
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.
inline void onCreate(
MamaPublisher pub
)
Reimplements: com::wombat::mama::MamaPublisherCallback::onCreate
inline void onDestroy(
MamaPublisher pub
)
Reimplements: com::wombat::mama::MamaPublisherCallback::onDestroy
inline void onError(
MamaPublisher pub,
short status,
String info
)
Reimplements: com::wombat::mama::MamaPublisherCallback::onError
inline void onSuccess(
MamaPublisher pub,
short status,
String info
)
Reimplements: com::wombat::mama::MamaPublisherCallback::onSuccess
inline void run(
String[] args
)
static inline void main(
String[] args
)
Updated on 2023-03-31 at 15:29:44 +0100