com.konakart.mqif
Interface MqMgrIf

All Known Implementing Classes:
MqMgr

public interface MqMgrIf

MqMgrIf - Message Queue Manager Interface Interface which an implementation of this manager must adhere to.


Method Summary
 void postMessageToQueue(MqOptionsIf options)
          Post a message to a specified queue.
 MqResponseIf readMessageFromQueue(MqOptionsIf options)
          Read a single message from a specified queue.
 

Method Detail

postMessageToQueue

void postMessageToQueue(MqOptionsIf options)
                        throws KKException
Post a message to a specified queue. Use the options parameter to define the message text, credentials and the destination queue.

Parameters:
options - the MQ options
Throws:
KKException

readMessageFromQueue

MqResponseIf readMessageFromQueue(MqOptionsIf options)
                                  throws KKException
Read a single message from a specified queue. Use the options parameter to define credentials, a timeout value and the name of the queue to read.

Parameters:
options - the MQ options
Returns:
an object describing the response from this call. Usually it will contain the text of the message that was read, but if there was a timeout the message will be null and the timedout attribute will be true.
Throws:
KKException


Copyright © 2011 DS Data Systems UK Ltd.