Esempio n. 1
0
 bool TransferAdapter::isPersistent(const framing::FrameSet& f)
 {
     const framing::DeliveryProperties* p = f.getHeaders()->get<framing::DeliveryProperties>();
     return p && p->getDeliveryMode() == 2;
 }
Esempio n. 2
0
 std::string TransferAdapter::getAppId(const framing::FrameSet& f)
 {
     const framing::MessageProperties* p = f.getHeaders()->get<framing::MessageProperties>();
     return p ? p->getAppId() : EMPTY;
 }
Esempio n. 3
0
 std::string TransferAdapter::getRoutingKey(const framing::FrameSet& f)
 {
     const framing::DeliveryProperties* p = f.getHeaders()->get<framing::DeliveryProperties>();
     return p ? p->getRoutingKey() : empty;
 }
Esempio n. 4
0
 uint8_t TransferAdapter::getPriority(const framing::FrameSet& f)
 {
     const framing::DeliveryProperties* p = f.getHeaders()->get<framing::DeliveryProperties>();
     return p ? p->getPriority() : 0;
 }