Skip to content

Instantly share code, notes, and snippets.

@tbje
Created May 4, 2010 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tbje/389366 to your computer and use it in GitHub Desktop.
Save tbje/389366 to your computer and use it in GitHub Desktop.
import net.liftweb.util.ActorPing
import net.liftweb.common.Logger
class Boot extends Logger {
def boot {
// where to search snippet
LiftRules.addToPackages("your.package")
...
val myActor = new MyActor
myActor ! Msg
...
}
}
class MyActor extends LiftActor with Logger {
override def messageHandler = {
case Msg => info("hello")
ActorPing.schedule(this, Msg, 15 minutes)
}
}
case object Msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment