Package com.yworkflow.transaction
Interface WorkflowTransactionalOperation<R,T extends Throwable>
- Type Parameters:
R- the type of result returned by the operationT- the type of exception that can be thrown by the operation
public interface WorkflowTransactionalOperation<R,T extends Throwable>
Functional interface for transactional operations that return a result.
WorkflowTransactionalOperation provides a way to execute operations within a transaction context,
ensuring atomicity and consistency of workflow operations.
- Since:
- 1.0
- See Also:
-
Method Summary
-
Method Details
-
execute
Executes the transactional operation and returns a result.- Returns:
- the result of the operation
- Throws:
T- if the operation fails
-