Skip to content

Instantly share code, notes, and snippets.

@KirinDave
Created January 28, 2011 21:01
Show Gist options
  • Save KirinDave/800939 to your computer and use it in GitHub Desktop.
Save KirinDave/800939 to your computer and use it in GitHub Desktop.
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