payapi-rabbus
Version:
A micro-servicebus for RabbitMQ. Forked from https://github.com/derickbailey/rabbus.git solely to make it use payapi-whistlepunk as a dependency.
31 lines (22 loc) • 479 B
JavaScript
// Actions
// -----------
function ConsumerActions(message){
this.message = message;
}
// Methods
// -------
ConsumerActions.prototype.ack = function(){
this.message.ack();
};
ConsumerActions.prototype.nack = function(){
this.message.nack();
};
ConsumerActions.prototype.reject = function(){
this.message.reject();
};
ConsumerActions.prototype.reply = function(response){
this.message.reply(response);
};
// Exports
// -------
module.exports = ConsumerActions;