| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.util.HashMap<java.lang.String,com.konakart.mq.MqMgr.MessageReader> |
messageReaders
HashMap to store the Message Readers
|
| Constructor and Description |
|---|
MqMgr()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkAPIAccessSupported(java.lang.String apiName,
MqOptionsIf options)
Check that the MQOptions parameters are supported through the specified KKEngIf API
|
void |
commit(MqOptionsIf options)
Commit all the messages read by the message reader (typically after successful processing).
|
void |
delayMessage(MqOptionsIf options)
Re-post the message with a delay (typically after unsuccessful processing).
|
MqResponseIf |
listMessagesOnQueue(MqOptionsIf options)
Creates a string containing a list of the messages on the specified queue
|
void |
postMessageToQueue(MqOptionsIf options)
Post a message to a specified queue.
|
void |
purgeQueue(MqOptionsIf options)
Purge all messages from a specified queue.
|
MqResponseIf |
readMessageFromQueue(MqOptionsIf options)
Read a single message from a specified queue.
|
void |
removeReader(MqOptionsIf options)
Remove the message reader if it exists.
|
java.lang.String |
toString()
For Diagnostic purposes.
|
protected static org.apache.commons.logging.Log log
protected static java.util.HashMap<java.lang.String,com.konakart.mq.MqMgr.MessageReader> messageReaders
public MqMgr()
throws java.lang.Exception
java.lang.Exception - an unexpected exceptionpublic void postMessageToQueue(MqOptionsIf options) throws com.konakart.app.KKException
MqMgrIfpostMessageToQueue in interface MqMgrIfoptions - the MQ optionscom.konakart.app.KKException - an unexpected KKException exceptionpublic MqResponseIf readMessageFromQueue(MqOptionsIf options) throws com.konakart.app.KKException
MqMgrIfreadMessageFromQueue in interface MqMgrIfoptions - the MQ optionscom.konakart.app.KKException - an unexpected KKException exceptionpublic void commit(MqOptionsIf options) throws com.konakart.app.KKException
public void delayMessage(MqOptionsIf options) throws com.konakart.app.KKException
delayMessage in interface MqMgrIfoptions - the MqOptions object - set the brokerURL, the username, the Queue name, the
messageId and the mode.com.konakart.app.KKException - an unexpected KKException exceptionpublic void removeReader(MqOptionsIf options) throws com.konakart.app.KKException
removeReader in interface MqMgrIfoptions - the MqOptions object - set the brokerURL, the username, the Queue name, the
messageId and the mode.com.konakart.app.KKException - an unexpected KKException exceptionpublic MqResponseIf listMessagesOnQueue(MqOptionsIf options) throws com.konakart.app.KKException
listMessagesOnQueue in interface MqMgrIfoptions - the MQ optionscom.konakart.app.KKException - an unexpected KKException exceptionpublic void purgeQueue(MqOptionsIf options) throws com.konakart.app.KKException
MqMgrIfpurgeQueue in interface MqMgrIfoptions - the MQ optionscom.konakart.app.KKException - an unexpected KKException exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void checkAPIAccessSupported(java.lang.String apiName,
MqOptionsIf options)
throws com.konakart.app.KKException
checkAPIAccessSupported in interface MqMgrIfapiName - the name of the API calledoptions - the MQ Optionscom.konakart.app.KKException - if the specified MQ Options are not supported for this API callCopyright © 2018 DS Data Systems UK Ltd.