2016-03-10 10:45:35 +02:00
|
|
|
import akka.{ AkkaBuild, Formatting }
|
add akka-typed project with generic ActorRef
This is the first step towards more type-safety in Actor interactions,
comprising:
* generic ActorRef[T] that only accepts T messages
* generic ActorSystem[T] extends ActorRef[T] (sending to the guardian,
whose Props[T] are provided for ActorSystem construction)
* removed the Actor trait: everything in there has been made into
messages and signals
* new Behavior[T] abstraction that consumes messages (of type T) or
Signals (lifecycle hooks, Terminated, ReceiveTimeout, Failed),
producing the next Behavior[T] as the result each time
* the ask pattern is provided and yields properly typed Futures
* variants of ActorContext are provided for synchronous testing of
Behaviors
All of this is implemented without touching code outside akka-typed
(apart from making guardianProps configurable), creating wrapper objects
around ActorRef, ActorContext, ActorSystem, Props and providing an Actor
implementation that just runs a Behavior.
2015-01-28 20:45:21 +01:00
|
|
|
|
|
|
|
|
AkkaBuild.defaultSettings
|
2017-02-20 12:05:21 +01:00
|
|
|
AkkaBuild.mayChangeSettings
|
add akka-typed project with generic ActorRef
This is the first step towards more type-safety in Actor interactions,
comprising:
* generic ActorRef[T] that only accepts T messages
* generic ActorSystem[T] extends ActorRef[T] (sending to the guardian,
whose Props[T] are provided for ActorSystem construction)
* removed the Actor trait: everything in there has been made into
messages and signals
* new Behavior[T] abstraction that consumes messages (of type T) or
Signals (lifecycle hooks, Terminated, ReceiveTimeout, Failed),
producing the next Behavior[T] as the result each time
* the ask pattern is provided and yields properly typed Futures
* variants of ActorContext are provided for synchronous testing of
Behaviors
All of this is implemented without touching code outside akka-typed
(apart from making guardianProps configurable), creating wrapper objects
around ActorRef, ActorContext, ActorSystem, Props and providing an Actor
implementation that just runs a Behavior.
2015-01-28 20:45:21 +01:00
|
|
|
Formatting.formatSettings
|
2016-03-10 10:45:35 +02:00
|
|
|
|
|
|
|
|
disablePlugins(MimaPlugin)
|
2016-05-31 08:12:06 +02:00
|
|
|
|
|
|
|
|
initialCommands := """
|
|
|
|
|
import akka.typed._
|
2017-05-23 12:58:59 +02:00
|
|
|
import akka.typed.scaladsl.Actor
|
2016-05-31 08:12:06 +02:00
|
|
|
import scala.concurrent._
|
2017-05-23 12:58:59 +02:00
|
|
|
import scala.concurrent.duration._
|
2016-05-31 08:12:06 +02:00
|
|
|
import akka.util.Timeout
|
|
|
|
|
implicit val timeout = Timeout(5.seconds)
|
|
|
|
|
"""
|