Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Account extends PersistentActor {
- def receiveCommand = {
- case Block(id, amount) => persist(Block(id, amount)){
- case Block(id, amount) =>
- persist(RevertBlock(id, s"Id ${id} already in processing",
- balance + amount))(_.revert())
- }
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement