Created
November 11, 2018 20:56
-
-
Save manjotmona/17709d66286090aafe3442d64e3d690a to your computer and use it in GitHub Desktop.
This file contains 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
object SimpleJob | |
{ | |
def props(): Props = Props(new SimpleJob) | |
case object JobToDo | |
} | |
class SimpleJob extends Actor with LoggerHelper | |
{ | |
override def receive = | |
{ | |
case JobToDo => log.info("This actor has received a JobToDo message") | |
case _ => log.info("This actor has received an invalid message") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment