#include <RoutingMessage.h>
Public Types | |
enum | REQUEST_TYPE { Batch, SingleMessage } |
Public Member Functions | |
RoutingMessage () | |
RoutingMessage (const string &source) | |
RoutingMessage (const string &tableName, const string &messageId, bool delayRead) | |
RoutingMessage (const string &tableName, const string &messageId, RoutingMessage(*messageProviderCallback)()=NULL, bool fastpath=false) | |
RoutingMessage (const RoutingMessage &source) | |
RoutingMessage & | operator= (const RoutingMessage &source) |
~RoutingMessage () | |
void | Read () |
bool | isReply () |
bool | isAck () |
bool | isNack () |
string | ToString (bool payloadEncoded=false) |
string | ToString (const string &payload) |
void | DelayTransform (const string &transform, const string &sessionCode, const unsigned int sequence) |
string | getDelayedTransform () const |
string | getDelayedTransformSessCode () const |
void | setBatchSequence (const unsigned long sequence) |
unsigned long | getBatchSequence () const |
string | getOriginalMessageType () const |
void | setOutputSession (const string &osession) |
string | getOutputSession () const |
void | setBatchTotalCount (const unsigned long batchcount) |
unsigned long | getBatchTotalCount () const |
void | setBatchTotalAmount (const string &amount) |
string | getBatchTotalAmount () const |
RoutingMessageOptions::MESSAGE_OPTIONS | getMessageOptions () const |
void | setMessageOptions (const RoutingMessageOptions::MESSAGE_OPTIONS options) |
void | setMessageOption (const RoutingMessageOptions::MESSAGE_OPTIONS option) |
string | getMessageId () const |
void | setMessageId (const string &messageId) |
string | getCorrelationId () const |
string | getSessionId () const |
string | getBatchId () const |
void | setBatchId (const string &value) |
unsigned long | getPriority () const |
void | setPriority (const unsigned long value) |
string | getUserId () const |
void | setUserId (const int userId) |
void | setCorrelationId (const string &correlationId) |
RoutingAggregationCode | getAggregationCode () |
const RoutingAggregationCode & | getFeedback () const |
void | setFeedback (const RoutingAggregationCode &feedback) |
string | getFeedbackString () const |
void | setFeedback (const string &feedback) |
long | getRoutingSequence () const |
void | setRoutingSequence (const long value) |
bool | isHeld () const |
void | setHeld (const bool value) |
bool | isBulk () const |
void | setBulk (const bool value) |
bool | isVirtual () const |
void | setVirtual (const bool value) |
bool | isDuplicate () const |
string | getRequestorService () const |
void | setRequestorService (const string &value) |
string | getOriginalRequestorService () const |
void | setOriginalRequestorService (const string &value) |
string | getResponderService () const |
void | setResponderService (const string &value) |
string | getTableName () const |
void | setTableName (const string &value) |
REQUEST_TYPE | getRequestType () const |
void | setRequestType (const REQUEST_TYPE value) |
const RoutingMessagePayload *const | getPayload () const |
RoutingMessagePayload * | getPayload () |
void | setPayload (const string &payload) |
RoutingMessageEvaluator * | getPayloadEvaluator (const bool forceReload=false) |
void | destroyPayloadEvaluator () |
void | setFastpath (const bool fastpath) |
bool | getFastpath () const |
string | getOriginalPayload (const RoutingMessagePayload::PayloadFormat format=RoutingMessagePayload::AUTO) const |
void | setDelayedReplyId (const string &idValue) |
string | getDelayedReplyId () const |
Static Public Member Functions | |
static RoutingMessage::REQUEST_TYPE | ParseRequestType (const string &request) |
static string | ToString (REQUEST_TYPE reqType) |
Private Attributes | |
string | m_MessageId |
string | m_BatchId |
string | m_CorrelationId |
string | m_SessionId |
string | m_UserId |
unsigned long | m_Priority |
unsigned long | m_BatchSequence |
unsigned long | m_BatchCount |
string | m_BatchAmount |
string | m_OriginalMessageType |
long | m_RoutingSequence |
bool | m_HoldStatus |
string | m_DelayedTransform |
string | m_DelayedTransformSessionCode |
string | m_DelayedReplyId |
RoutingAggregationCode | m_Feedback |
RoutingMessageOptions::MESSAGE_OPTIONS | m_MessageOptions |
string | m_RequestorService |
string | m_ResponderService |
string | m_OriginalRequestorService |
REQUEST_TYPE | m_RequestType |
bool | m_Fastpath |
bool | m_Bulk |
bool | m_Virtual |
string | m_TableName |
RoutingMessagePayload * | m_Payload |
RoutingMessageEvaluator * | m_PayloadEvaluator |
Friends | |
ostream & | operator<< (ostream &os, const RoutingMessage &except) |
RoutingMessage::RoutingMessage | ( | ) |
RoutingMessage::RoutingMessage | ( | const string & | source | ) |
RoutingMessage::RoutingMessage | ( | const string & | tableName, |
const string & | messageId, | ||
bool | delayRead | ||
) |
RoutingMessage::RoutingMessage | ( | const string & | tableName, |
const string & | messageId, | ||
RoutingMessage(*)() | messageProviderCallback = NULL , |
||
bool | fastpath = false |
||
) |
RoutingMessage::RoutingMessage | ( | const RoutingMessage & | source | ) |
RoutingMessage::~RoutingMessage | ( | ) |
void RoutingMessage::DelayTransform | ( | const string & | transform, |
const string & | sessionCode, | ||
const unsigned int | sequence | ||
) |
void RoutingMessage::destroyPayloadEvaluator | ( | ) |
RoutingAggregationCode RoutingMessage::getAggregationCode | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
string RoutingMessage::getFeedbackString | ( | ) | const |
|
inline |
|
inline |
|
inline |
string RoutingMessage::getOriginalPayload | ( | const RoutingMessagePayload::PayloadFormat | format = RoutingMessagePayload::AUTO | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
RoutingMessageEvaluator * RoutingMessage::getPayloadEvaluator | ( | const bool | forceReload = false | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool RoutingMessage::isAck | ( | ) |
|
inline |
bool RoutingMessage::isDuplicate | ( | ) | const |
|
inline |
bool RoutingMessage::isNack | ( | ) |
bool RoutingMessage::isReply | ( | ) |
|
inline |
RoutingMessage & RoutingMessage::operator= | ( | const RoutingMessage & | source | ) |
|
static |
void RoutingMessage::Read | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void RoutingMessage::setFeedback | ( | const string & | feedback | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void RoutingMessage::setPayload | ( | const string & | payload | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
string RoutingMessage::ToString | ( | bool | payloadEncoded = false | ) |
string RoutingMessage::ToString | ( | const string & | payload | ) |
|
static |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |