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