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