Class

com.github.scalaspring.akka

AkkaAutoConfiguration

Related Doc: package akka

Permalink

class AkkaAutoConfiguration extends SpringLogging

Configures Akka for use in a Spring application using reasonable defaults. Most beans in this configuration are conditional and will only be defined if not already present in the context. This allows user-defined configuration to override defaults.

This configuration provides the following: 1. A default actor system based on the supplied Akka Config. A single actor system is presumed sufficient for most applications. 2. A SmartLifecycle bean that shuts down the actor system when the application context is stopped. This matches the lifetime of the actor system to the containing application context. 3. A baseline Deploy instance used as the starting point for actors created within the application context.

Annotations
@Configuration() @Import()
See also

ActorRefFactory

Linear Supertypes
SpringLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AkkaAutoConfiguration
  2. SpringLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AkkaAutoConfiguration()

    Permalink
  2. new AkkaAutoConfiguration(actorSystemName: String)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def actorSystem(config: Config): ActorSystem

    Permalink

    Create a default actor system if none defined.

    Create a default actor system if none defined.

    Define a bean of type ExecutionContext to customize the actor system's execution context. If no such bean is defined, the default Akka execution context will be used, which should be sufficient for most applications.

    Note that dispatchers can be customized on a per-actor basis, which should be used to segment workloads, as needed, while maintaining a single actor system.

    Note: The ActorSystem trait includes a shutdown method that Spring would normally detect and call when the application context is closed. The empty string destroyMethod @Bean annotation attribute disables this detection to allow for explicit management of the actor system lifecycle via an ActorSystemLifecycle bean.

    Annotations
    @Bean() @ConditionalOnMissingBean()
  5. def actorSystemBeanPostProcessor: ActorSystemBeanPostProcessor

    Permalink

    Create a post processor to automatically register Spring extension on actor system(s).

    Create a post processor to automatically register Spring extension on actor system(s).

    Annotations
    @Bean()
  6. def actorSystemLifecycle(actorSystem: ActorSystem): ActorSystemLifecycle

    Permalink

    Create a lifecycle bean to shut down the actor system when the application context is stopped.

    Create a lifecycle bean to shut down the actor system when the application context is stopped.

    Annotations
    @Bean() @ConditionalOnMissingBean()
  7. val applicationContext: ConfigurableApplicationContext

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def defaultDeploy: Deploy

    Permalink

    Create a default actor Deploy instance if none defined.

    Create a default actor Deploy instance if none defined.

    Define a bean of type Deploy to customize the deployment information used when creating actors.

    Note that deployment customization is supported at the following points. For example, customizations defined during reference creation override those from a Deploy instance defined in the application context. 1. Application Context - Define a Deploy bean that will be used as the starting point for all actors 2. Actor Component - Specify annotation properties, typically to allocate actors to specific dispatchers 3. Actor Reference - Specify creation parameters to customize specific actor instances

    Annotations
    @Bean() @ConditionalOnMissingBean()
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. val executionContext: ExecutionContext

    Permalink
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. val log: Log

    Permalink
    Attributes
    protected
    Definition Classes
    SpringLogging
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SpringLogging

Inherited from AnyRef

Inherited from Any

Ungrouped