← Back to the chapter · Previous detail

Technical detail · AMQP Frames: Routing and Reliability

AMQP 1.0 transfer, disposition and flow fields

TRANSFER uses handle 0, delivery ID 42 and a binary delivery tag identifying the delivery on the link. Format 0 denotes the standard AMQP message; settled: false leaves settlement pending and more: false ends fragmentation. DISPOSITION from the receiver reports accepted, rejected or released state; the example settles delivery 42. FLOW carries session windows and, when a handle is present, link credit. The sample grants 100 deliveries of link credit alongside windows of 500. Credit is granted by the receiving endpoint, rather than invented by the sender.

TRANSFER {
    handle: 0                          # Link handle
    delivery_id: 42                    # Session-scoped delivery ID
    delivery_tag: <binary>             # Link delivery identification
    message_format: 0                  # Standard AMQP message
    settled: false                     # Unsettled delivery
    more: false                        # Last fragment

    # Followed by message payload
}

DISPOSITION frame (acknowledgment):

DISPOSITION {
    role: receiver                     # Endpoint role
    first: 42                          # First delivery ID
    last: 42                           # Last delivery ID
    settled: true                      # Final state
    state: accepted                    # accepted/rejected/released
}
FLOW {
    next_incoming_id: 100              # Expected transfer ID
    incoming_window: 500               # Available receive capacity
    next_outgoing_id: 50               # Next transfer to send
    outgoing_window: 500               # Send capacity
    handle: 0                          # Link handle (optional)
    link_credit: 100                   # Delivery credit granted on the link
}

← Back to the chapter · Previous detail