cakemix
package cakemix
- Alphabetic
- Public
- All
Type Members
- trait ActorAskTimeoutProvider extends AskTimeoutProvider
- trait ActorCreationSupport extends AnyRef
Mixin trait that defines methods for looking up and creating child actors.
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.
- trait ActorCreationSupportForActors extends ActorCreationSupport
The default implementation of the cakemix.ActorCreationSupport that can be mixed into Actors.
- trait ActorExecutionContextProvider extends ExecutionContextProvider
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.
- trait ActorLifecycleLogging extends Actor with ActorLogging
- trait ActorRefFactoryExecutionContextProvider extends ExecutionContextProvider with ActorRefFactoryProvider
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.
- trait ActorRefFactoryProvider extends AnyRef
Mixin trait for providing an implementation of the Akka ActorRefFactory trait.
- trait ActorRefFactoryProviderForActors extends ActorRefFactoryProvider
Implementation of ActorRefFactoryProvider for mixing into Actors.
- trait AskTimeoutProvider extends AnyRef
Provides an implicit instance of Timeout for when you use the Akka ask pattern
- trait EventStreamProvider extends AnyRef
Mixin trait that provides an Akka EventStream.
- trait EventStreamProviderForActors extends EventStreamProvider
Implementation of cakemix.EventStreamProvider that uses the actor's context to provide an instance of EventStream.
- trait ExecutionContextProvider extends AnyRef
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.
- trait GlobalExecutionContextProvider extends AnyRef
Implementation of cakemix.ExecutionContextProvider that uses the ExecutionContext provided by scala.concurrent.ExecutionContext.global.
- trait LoggingProvider extends AnyRef
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).
- trait NoLoggingProvider extends LoggingProvider
NoOp implementation of the LoggingProvider trait, mainly for use in tests.
- trait SchedulerProvider extends AnyRef
Mixin trait that provides an Akka Scheduler.
- trait SchedulerProviderForActors extends AnyRef
Implementation of cakemix.SchedulerProvider that uses the actor's context to provide an instance of Scheduler.
- trait StdOutLoggingProvider extends LoggingProvider
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!
- trait TestOnlyHardcodedAskTimeoutProvider extends AskTimeoutProvider
For all those tests where you just need a simple askTimeout provider...
Value Members
- object AskTimeoutProvider