Package io.jmix.flowui.asynctask
Class UiAsyncTaskProperties
java.lang.Object
io.jmix.flowui.asynctask.UiAsyncTaskProperties
@ConfigurationProperties(prefix="jmix.ui.async-task")
public class UiAsyncTaskProperties
extends Object
Configuration properties for UI asynchronous tasks.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the configuration for an executor service used for handling UI asynchronous tasks. -
Constructor Summary
ConstructorsConstructorDescriptionUiAsyncTaskProperties(UiAsyncTaskProperties.ExecutorServiceConfig executorService, int defaultTimeoutSec) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the default timeout in seconds for produced completable futures.Returns the configuration for the executor service used for UI asynchronous tasks.
-
Constructor Details
-
UiAsyncTaskProperties
public UiAsyncTaskProperties(@DefaultValue UiAsyncTaskProperties.ExecutorServiceConfig executorService, @DefaultValue("300") int defaultTimeoutSec)
-
-
Method Details
-
getExecutorService
Returns the configuration for the executor service used for UI asynchronous tasks.- Returns:
- the executor service configuration
-
getDefaultTimeoutSec
public int getDefaultTimeoutSec()Returns the default timeout in seconds for produced completable futures. The default value is 300 seconds (5 minutes).- Returns:
- the default timeout in seconds
-