Interface AsyncGroup
public sealed interface AsyncGroup
Manages asynchronous background tasks executed during data source and data connection lifecycle
events.
An instance of AsyncGroup is passed to methods of DataSrc (such as DataSrc.setup(AsyncGroup)) and DataConn (such as DataConn.commit(AsyncGroup) and
DataConn.rollback(AsyncGroup)). Implementations of data sources and data connections can
register background asynchronous operations (such as parallel cleanup or pre-commit validations)
using the add(Runner) method.
All registered Runner tasks are managed by this group and executed asynchronously. If
any registered task fails, is interrupted, or throws an unhandled runtime exception,
corresponding error records defined in this interface are produced to report the failure.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordIndicates that a registeredRunnertask failed during its execution.static final recordIndicates that a registeredRunnertask execution was interrupted.static final recordIndicates that an unhandled runtime exception was thrown during the execution of a registeredRunnertask. -
Method Summary
-
Method Details
-
add
-