Record Class UnitOfWorkConfiguration

java.lang.Object
java.lang.Record
org.axonframework.messaging.core.unitofwork.UnitOfWorkConfiguration
Record Components:
workScheduler - The Executor for processing unit of work actions.
allowAsyncProcessing - Whether the unit of work should allow fully asynchronous processing.
processingLifecycleEnhancers - The enhancers that are applied to the processing lifecycle for each created unit of work.
lifecycleInterceptor - The ProcessingLifecycleInterceptor invoked immediately around every action and handler dispatch executed by the unit of work, or null when no interceptor is installed (the direct, zero-overhead path).

public record UnitOfWorkConfiguration(Executor workScheduler, boolean allowAsyncProcessing, List<Consumer<ProcessingLifecycle>> processingLifecycleEnhancers, @Nullable ProcessingLifecycleInterceptor lifecycleInterceptor) extends Record
Configuration used for the UnitOfWork creation in the UnitOfWorkFactory.

Defines the work scheduler used during unit of work processing, and allows registering possible enhancers for a unit of work's lifecycle.

Since:
5.0.0
Author:
Mateusz Nowak, John Hendrikx