27.01.2014 Views

AMQP Specification Transport

AMQP Specification Transport

AMQP Specification Transport

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Session<br />

4.12.2 Control: 0x0202 (detach from the named session)<br />

Signature:<br />

detach( options: map, name: session-name, closing: bit, acknowledged: sequence-no,<br />

executed: sequence-no, exception: exception )<br />

Indicates that the endpoint is being detached from the connection.<br />

Field Details:<br />

options: map<br />

options map (optional)<br />

name: session-name<br />

closing: bit<br />

Identifies the detaching session.<br />

the session name (required)<br />

(optional)<br />

This field, if set, indicates that the session endpoint will be destroyed when fully detached.<br />

acknowledged: sequence-no<br />

(optional)<br />

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

executed: sequence-no<br />

(optional)<br />

The id of the last executed command. This marks the head of the input buffer.<br />

exception: exception<br />

(optional)<br />

If set, this field indicates that the session is being detached due to an exceptional condition.<br />

The value of the field should contain details on the cause of the exception.<br />

4.12.3 exception struct (details of a session error)<br />

This struct carries information on an exception which has occurred on the session. The command-id, when<br />

given, correlates the error to a specific command.<br />

Field Details:<br />

error-code: error-code<br />

error code indicating the type of error (required)<br />

command-id: sequence-no<br />

exceptional command (optional)<br />

The command-id of the command which caused the exception. If the exception was not caused<br />

by a specific command, this value is not set.<br />

command-code: uint8<br />

the class code of the command whose execution gave rise to<br />

the error (if appropriate) (optional)<br />

field-index: uint8<br />

index of the exceptional field (optional)<br />

The zero based index of the exceptional field within the arguments to the exceptional<br />

command. If the exception was not caused by a specific field, this value is not set.<br />

description: str16<br />

descriptive text on the exception (optional)<br />

The description provided is implementation defined, but MUST be in the language appropriate<br />

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

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

Saved successfully!

Ooh no, something went wrong!