Removing LifeCycle from Props, it's now a part of AllForOnePermanent, OneForOnePermanent etc

This commit is contained in:
Viktor Klang 2011-09-14 18:01:43 +02:00
parent 7e2af6a9b9
commit 4a0358ad7d
35 changed files with 342 additions and 286 deletions

View file

@ -178,7 +178,7 @@ class ConsumerScalaTest extends WordSpec with BeforeAndAfterAll with MustMatcher
val consumer = Actor.actorOf(new SupervisedConsumer("reply-channel-test-2"))
val supervisor = Supervisor(
SupervisorConfig(
OneForOneStrategy(List(classOf[Exception]), 2, 10000),
OneForOnePermanentStrategy(List(classOf[Exception]), 2, 10000),
Supervise(consumer, Permanent) :: Nil))
val latch = new CountDownLatch(1)
@ -189,10 +189,10 @@ class ConsumerScalaTest extends WordSpec with BeforeAndAfterAll with MustMatcher
}
"be able to reply on failure during postStop" in {
val consumer = Actor.actorOf(Props(new SupervisedConsumer("reply-channel-test-3")).withLifeCycle(Temporary))
val consumer = Actor.actorOf(Props(new SupervisedConsumer("reply-channel-test-3")))
val supervisor = Supervisor(
SupervisorConfig(
OneForOneStrategy(List(classOf[Exception]), 2, 10000),
OneForOneTemporaryStrategy(List(classOf[Exception])),
Supervise(consumer, Temporary) :: Nil))
val latch = new CountDownLatch(1)