27.01.2014 Views

AMQP Specification Transport

AMQP Specification Transport

AMQP Specification Transport

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>AMQP</strong> <strong>Specification</strong>.<br />

Session<br />

4.12.1 Control: 0x0201 (attach to the named session)<br />

Signature:<br />

attach( options: map, name: session-name, opening: bit, next-command: sequence-no,<br />

acknowledged: sequence-no, received: sequence-no, capacity: uint32, timeout:<br />

uint32, txn-mode: txn-level, txn-support: txn-level )<br />

Indicate that a session endpoint has been attached to a connection. A session MUST NOT be mapped to<br />

more than one connection at a time.<br />

Field Details:<br />

options: map<br />

options map (optional)<br />

name: session-name<br />

opening: bit<br />

the session name (required)<br />

The name of the session whose endpoint has been attached to the connection.<br />

true iff the session endpoint has never been attached<br />

(optional)<br />

This field, if set, indicates that the session endpoint is newly created and has never been<br />

attached to another endpoint.<br />

next-command: sequence-no<br />

(optional)<br />

The id that will be assigned to the next outgoing command passed to the endpoint. For an<br />

opening endpoint this will be the id of the next command sent from the endpoint.<br />

acknowledged: sequence-no<br />

(optional)<br />

The id of the last acknowledged command. This marks the head of the replay buffer. If the<br />

endpoint is newly created, this will be null.<br />

received: sequence-no<br />

the id of the last command received (optional)<br />

The id of the last received command. This field MUST be set if and only if the session has<br />

received commands. This field indicates where replay will begin when resuming a session.<br />

capacity: uint32<br />

timeout: uint32<br />

(optional)<br />

This value should be given relative to received if the opening bit is false.<br />

the session timeout (optional)<br />

The session timeout indicates how long the endpoint will be kept when detached. If not set, the<br />

endpoint will be kept indefinitely.<br />

txn-mode: txn-level<br />

txn-support: txn-level<br />

the desired txn-level (optional)<br />

the maximum supported txn-level (optional)<br />

<strong>AMQP</strong> <strong>Transport</strong> v. 1-0 Page 30 of 83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!