Tkanos
Tkanos

Reputation:

[Pattern]Keep transaction in a queue

For the moment, when an exception occur, I show a message error to the user. But I want, in this case, keep the transaction in a queue to retry again later.

Do you know if a pattern to resolve my problem exist ???

thanks, Tkanos

Upvotes: 1

Views: 101

Answers (1)

Mark Seemann
Mark Seemann

Reputation: 233227

By 'transaction' I assume that you refer to an action undertaken against a data store, as opposed to ACID transactions.

In that case, the Command pattern should fit you problem nicely.

Upvotes: 1

Related Questions