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