bool TransferAdapter::isPersistent(const framing::FrameSet& f) { const framing::DeliveryProperties* p = f.getHeaders()->get<framing::DeliveryProperties>(); return p && p->getDeliveryMode() == 2; }
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; }
uint8_t TransferAdapter::getPriority(const framing::FrameSet& f) { const framing::DeliveryProperties* p = f.getHeaders()->get<framing::DeliveryProperties>(); return p ? p->getPriority() : 0; }