Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. class Account extends PersistentActor {
  2. def receiveCommand = {
  3. case Block(id, amount) => persist(Block(id, amount)){
  4. case Block(id, amount) =>
  5. persist(RevertBlock(id, s"Id ${id} already in processing",
  6. balance + amount))(_.revert())
  7. }
  8. }
  9. ...
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement