Mixin trait that defines methods for looking up and creating child actors.
The default implementation of the cakemix.ActorCreationSupport that can be mixed into Actors.
Implementation of cakemix.ExecutionContextProvider for use in Actors.
Implementation of cakemix.ExecutionContextProvider for use in Actors. It uses the Actor's context dispatcher as the ExecutionContext.
Implementation of ExecutionContextProvider that bridges with cakemix.ActorRefFactoryProvider so anything that provides an ActorRefFactory will get the dispatcher of the associated ActorSystem provided as the ExecutionContext.
Mixin trait for providing an implementation of the Akka ActorRefFactory trait.
Implementation of ActorRefFactoryProvider for mixing into Actors.
Provides an implicit instance of Timeout for when you use the Akka ask pattern
Mixin trait that provides an Akka EventStream.
Implementation of cakemix.EventStreamProvider that uses the actor's context to provide an instance of EventStream.
Simple mixin trait for providing an ExecutionContext.
Simple mixin trait for providing an ExecutionContext. Very useful in any Scala code that uses or transforms Futures or the Akka ask pattern.
Implementation of cakemix.ExecutionContextProvider that uses the ExecutionContext provided by scala.concurrent.ExecutionContext.global.
Handy trait for expressing a need for an Akka LoggerAdapter.
Handy trait for expressing a need for an Akka LoggerAdapter. This trait is usually implemented by mixing the standard Akka ActorLogging trait into your top-level implementation actor (i.e. the Http entrypoint actor).
NoOp implementation of the LoggingProvider trait, mainly for use in tests.
Mixin trait that provides an Akka Scheduler.
Implementation of cakemix.SchedulerProvider that uses the actor's context to provide an instance of Scheduler.
Handy for test debugging when you want to make absolutely sure your log messages will not be filtered out by Akka and/or Logback.
Handy for test debugging when you want to make absolutely sure your log messages will not be filtered out by Akka and/or Logback.
Only use when needed, tests should not normally produce logging and if you want to produce proper logging, use a real (slf4j) adapter!
For all those tests where you just need a simple askTimeout provider...
Mixin trait that defines methods for looking up and creating child actors.
Example: Your application has a Spray endpoint, which is usually a subclass of HttpServiceActor or an Actor that implements HttpService. That Spray endpoint actor can be built up using the cake pattern, combining many mixin traits that provide parts of the API and their implementations (i.e. child actors). Those Mixin traits can then use this trait to abstract away the creation of child actors until they all gets mixed in together with an implementation like cakemix.ActorCreationSupportForActors.