Skip to content

Commit

Permalink
Exchange argument docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard93 authored Mar 15, 2018
1 parent e9c6112 commit 4babfe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Check `RabbitMQ.Utils` for sample code. The main class is `isc.rabbitmq.API`. It
| Method | Arguments | Returns | Description |
|--------------------|-----------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------|
| %OnNew | gateway, host, port, user, pass, virtualHost, queue, durable | api | Creates new connection to RabbitMQ |
| %OnNew | gateway, host, port, user, pass, virtualHost, queue, durable, exchange | api | Creates new connection to RabbitMQ |
| sendMessage | msg, correlationId, messageId | null | Sends message to default queue (as specified in %OnNew) |
| sendMessageToQueue | queue, msg, correlationId, messageId | null | Sends message to the specified queue |
| readMessageString | - | props | Reads message from default queue. Returns list of message properties (including message text) |
Expand All @@ -53,6 +53,7 @@ Check `RabbitMQ.Utils` for sample code. The main class is `isc.rabbitmq.API`. It
| virtualHost | String | %String | / | Yes | Virtual host |
| queue | String | %String | Test | Yes | Queue name |
| durable | int | %Integer | 1 | Required only if you want to create new queue | The queue will survive a server restart |
| exchange | String | %String | Test | No | Exchange name. Provide only for sending messages. Modifies the meaning of queue property (if exchange is present, then queue means routing key)|
| msg | byte[] | %GlobalBinaryStream | Text | Yes | Message body |
| correlationId | String | %String | CorrelationId | Required only with messageId | Correlation identifier |
| messageId | String | %String | MessageId | Required only with correlationId | Message identifier |
Expand Down

0 comments on commit 4babfe2

Please sign in to comment.