iZettle/izettle-toolbox — pull request #25 by oskarwiksten (2013-11-12 15:38:07+00:00)
Title: Add explicit exception for handlers to delay messages

* Adds exception RetryableMessageHandlerException, that a message handler can throw, to indicate that a message cannot be handled right now.
* Examples of this could be handling a message that, in turn, requires other messages to have been processed first. In those situations, the handler can then throw RetryableMessageHandlerException, which will make the QueueProcessor retry the message later, when the message visibility has passed.

Ping @mikaellothman or @silverpilen , is this something we want? I've got a specific use-case in mind.