MyChannels.Nirvana.ITransactionalConsumer Interface Reference

Defines a consumer that receives messages in a transactional manner. More...

Inheritance diagram for MyChannels.Nirvana.ITransactionalConsumer:
MyChannels.Nirvana.IConsumer

Public Member Functions

void Commit ()
 When in Transactional mode, the Commit() call will acknowledge all messages consumed by the Consumer up to the point in which the Commit call is made. More...
 
void Commit (IMessage message)
 In Transactional mode, this Commit call will acknowledge the receipt of the Message to the Nirvana server More...
 
void Rollback ()
 Rollback all current unacknowledged messages consumed by the Consumer More...
 
void Rollback (IMessage message)
 Rollback the Message. More...
 
- Public Member Functions inherited from MyChannels.Nirvana.IConsumer
IEnumerable< IMessageGetSynchronousReader (TimeSpan timeout)
 Creates a synchronous message reader. More...
 

Additional Inherited Members

- Properties inherited from MyChannels.Nirvana.IConsumer
IDestination Destination [get]
 The destination being consumed More...
 

Detailed Description

Defines a consumer that receives messages in a transactional manner.

Member Function Documentation

void MyChannels.Nirvana.ITransactionalConsumer.Commit ( )

When in Transactional mode, the Commit() call will acknowledge all messages consumed by the Consumer up to the point in which the Commit call is made.

Returns
true if successful
void MyChannels.Nirvana.ITransactionalConsumer.Commit ( IMessage  message)

In Transactional mode, this Commit call will acknowledge the receipt of the Message to the Nirvana server

Parameters
messageThe Message to acknowledge / commit
Returns
true if successful
void MyChannels.Nirvana.ITransactionalConsumer.Rollback ( )

Rollback all current unacknowledged messages consumed by the Consumer

Returns
true if successful
void MyChannels.Nirvana.ITransactionalConsumer.Rollback ( IMessage  message)

Rollback the Message.

This method will effectively unacknowledged the Message, and any previous unacknowledged messages.

Parameters
messageThe Message to acknowledge
Returns
true if successful