p

cakemix

package cakemix

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait ActorAskTimeoutProvider extends AskTimeoutProvider
  2. 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.

  3. trait ActorCreationSupportForActors extends ActorCreationSupport

    The default implementation of the cakemix.ActorCreationSupport that can be mixed into Actors.

  4. 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.

  5. trait ActorLifecycleLogging extends Actor with ActorLogging
  6. 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.

  7. trait ActorRefFactoryProvider extends AnyRef

    Mixin trait for providing an implementation of the Akka ActorRefFactory trait.

  8. trait ActorRefFactoryProviderForActors extends ActorRefFactoryProvider

    Implementation of ActorRefFactoryProvider for mixing into Actors.

  9. trait AskTimeoutProvider extends AnyRef

    Provides an implicit instance of Timeout for when you use the Akka ask pattern

  10. trait EventStreamProvider extends AnyRef

    Mixin trait that provides an Akka EventStream.

  11. trait EventStreamProviderForActors extends EventStreamProvider

    Implementation of cakemix.EventStreamProvider that uses the actor's context to provide an instance of EventStream.

  12. 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.

  13. trait GlobalExecutionContextProvider extends AnyRef

    Implementation of cakemix.ExecutionContextProvider that uses the ExecutionContext provided by scala.concurrent.ExecutionContext.global.

  14. 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).

  15. trait NoLoggingProvider extends LoggingProvider

    NoOp implementation of the LoggingProvider trait, mainly for use in tests.

  16. trait SchedulerProvider extends AnyRef

    Mixin trait that provides an Akka Scheduler.

  17. trait SchedulerProviderForActors extends AnyRef

    Implementation of cakemix.SchedulerProvider that uses the actor's context to provide an instance of Scheduler.

  18. 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!

  19. trait TestOnlyHardcodedAskTimeoutProvider extends AskTimeoutProvider

    For all those tests where you just need a simple askTimeout provider...

Value Members

  1. object AskTimeoutProvider

Ungrouped