Permalink
Browse files

updates CHANGELOG and improves README

  • Loading branch information...
videlalvaro committed Jun 4, 2012
1 parent a5a4816 commit 93039ac624be768a9ce1e757cf765d66fd3a55df
Showing with 6 additions and 5 deletions.
  1. +1 −0 CHANGELOG
  2. +5 −5 README.md
View
@@ -5,6 +5,7 @@
The affected settings are:
* `durable` was changed from `false` to `true`,
* `auto_delete` was changed from `true` to `false`.
+ * Adds basic_reject functionality to consumers. A message can be rejected by returning `false` from a callback.
- 2012-05-29
* Merged PR #46 adding compiler passes for the configuration. Now the parameter classes can be overriden.
View
@@ -170,11 +170,11 @@ Here's an example callback:
$isUploadSuccess = someUploadPictureMethod();
if (!$isUploadSuccess) {
-
- // If you upload an image failed due to a temporary error, from the callback can return `false`,
- // so RabbitMq did not remove the message from the queue, and moved it to the end of the queue
- // (reject & requeue). For any other result of the `execute` method will be removed from the message
- // queue as well handled.
+ // If your image upload failed due to a temporary error you can return false
+ // from your callback so the message will be rejected by the consumer and
+ // requeued by RabbitMQ.
+ // Any other value not equal to false will acknowledge the message and remove it
+ // from the queue
return false;
}
}

0 comments on commit 93039ac

Please sign in to comment.