use of com.swiftmq.amqp.v100.generated.transport.definitions.Handle in project swiftmq-client by iitsoftware.
the class SessionDispatcher method visit.
public void visit(POSendResumedTransfer po) {
if (pTracer.isEnabled())
pTracer.trace(toString(), ", visit, po=" + po + " ...");
TransferFrame frame = new TransferFrame(mySession.getChannel());
frame.setHandle(new Handle(po.getProducer().getHandle()));
frame.setSettled(new AMQPBoolean(true));
frame.setResume(new AMQPBoolean(true));
frame.setDeliveryId(new DeliveryNumber(nextOutgoingId++));
frame.setDeliveryTag(po.getDeliveryTag());
frame.setState(new Accepted());
outboundHandler.send(frame);
if (pTracer.isEnabled())
pTracer.trace(toString(), ", visit, po=" + po + " done");
}
Aggregations