@Configuration public abstract class AbstractAsyncConfiguration extends java.lang.Object implements ImportAware
Configuration
class providing common structure for enabling
Spring's asynchronous method execution capability.EnableAsync
Modifier and Type | Field and Description |
---|---|
protected AnnotationAttributes |
enableAsync |
protected java.util.concurrent.Executor |
executor |
Constructor and Description |
---|
AbstractAsyncConfiguration() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
asyncAdvisor()
The component that will apply async execution advice to beans annotated with
the async annotation.
|
(package private) void |
setConfigurers(java.util.Collection<AsyncConfigurer> configurers)
Collect any
AsyncConfigurer beans through autowiring. |
void |
setImportMetadata(AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @
Configuration class. |
protected AnnotationAttributes enableAsync
protected java.util.concurrent.Executor executor
public void setImportMetadata(AnnotationMetadata importMetadata)
ImportAware
Configuration
class.setImportMetadata
in interface ImportAware
public abstract java.lang.Object asyncAdvisor()
@Autowired(required=false) void setConfigurers(java.util.Collection<AsyncConfigurer> configurers)
AsyncConfigurer
beans through autowiring.