Created
January 28, 2011 21:01
-
-
Save KirinDave/800939 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.banksimple.testing.util | |
import akka.actor._ | |
class ReplayActor extends Actor { | |
var lastSeen: List[Any] = List() | |
override def receive: Receive = { | |
case 'dump => { self.reply(lastSeen) ; lastSeen = List() } | |
case a => lastSeen = a :: lastSeen | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment