Making it green
This commit is contained in:
parent
e5b3fd00a2
commit
aa4ad6f3c3
20 changed files with 155 additions and 104 deletions
|
|
@ -1,34 +1,30 @@
|
|||
package docs.camel
|
||||
|
||||
object QuartzExample {
|
||||
//#Quartz
|
||||
import akka.actor.{ ActorSystem, Props }
|
||||
|
||||
{
|
||||
//#Quartz
|
||||
import akka.actor.{ ActorSystem, Props }
|
||||
import akka.camel.{ Consumer }
|
||||
|
||||
import akka.camel.{ Consumer }
|
||||
class MyQuartzActor extends Consumer {
|
||||
|
||||
class MyQuartzActor extends Consumer {
|
||||
def endpointUri = "quartz://example?cron=0/2+*+*+*+*+?"
|
||||
|
||||
def endpointUri = "quartz://example?cron=0/2+*+*+*+*+?"
|
||||
def receive = {
|
||||
|
||||
def receive = {
|
||||
case msg ⇒ println("==============> received %s " format msg)
|
||||
|
||||
case msg ⇒ println("==============> received %s " format msg)
|
||||
} // end receive
|
||||
|
||||
} // end receive
|
||||
} // end MyQuartzActor
|
||||
|
||||
} // end MyQuartzActor
|
||||
object MyQuartzActor {
|
||||
|
||||
object MyQuartzActor {
|
||||
|
||||
def main(str: Array[String]) {
|
||||
val system = ActorSystem("my-quartz-system")
|
||||
system.actorOf(Props[MyQuartzActor])
|
||||
} // end main
|
||||
|
||||
} // end MyQuartzActor
|
||||
//#Quartz
|
||||
}
|
||||
def main(str: Array[String]) {
|
||||
val system = ActorSystem("my-quartz-system")
|
||||
system.actorOf(Props[MyQuartzActor])
|
||||
} // end main
|
||||
|
||||
} // end MyQuartzActor
|
||||
//#Quartz
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue