Search in sources :

Example 11 with Handle

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");
}
Also used : Accepted(com.swiftmq.amqp.v100.generated.messaging.delivery_state.Accepted)

Aggregations

IOException (java.io.IOException)9 AddressString (com.swiftmq.amqp.v100.generated.messaging.message_format.AddressString)3 TxnIdIF (com.swiftmq.amqp.v100.generated.transactions.coordination.TxnIdIF)3 Handle (com.swiftmq.amqp.v100.generated.transport.definitions.Handle)3 ArrayList (java.util.ArrayList)3 List (java.util.List)3 NoLocalFilter (com.swiftmq.amqp.v100.generated.filter.filter_types.NoLocalFilter)2 SelectorFilter (com.swiftmq.amqp.v100.generated.filter.filter_types.SelectorFilter)2 TransactionalState (com.swiftmq.amqp.v100.generated.transactions.coordination.TransactionalState)2 Error (com.swiftmq.amqp.v100.generated.transport.definitions.Error)2 Fields (com.swiftmq.amqp.v100.generated.transport.definitions.Fields)2 TransferNumber (com.swiftmq.amqp.v100.generated.transport.definitions.TransferNumber)2 Accepted (com.swiftmq.amqp.v100.generated.messaging.delivery_state.Accepted)1 Coordinator (com.swiftmq.amqp.v100.generated.transactions.coordination.Coordinator)1 SequenceNo (com.swiftmq.amqp.v100.generated.transport.definitions.SequenceNo)1 Packager (com.swiftmq.amqp.v100.transport.Packager)1 QueueException (com.swiftmq.swiftlet.queue.QueueException)1