diff --git a/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxService.java b/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxService.java new file mode 100644 index 0000000..27cfd16 --- /dev/null +++ b/boot/common-framework/src/main/java/com/klaro/acquirecore/framework/TxService.java @@ -0,0 +1,18 @@ +package com.klaro.acquirecore.framework; + +/** + * Functional interface for transactional service operations. + * Represents a single unit of work within a transaction context. + */ +@FunctionalInterface +public interface TxService { + + /** + * Execute the service operation within the given transaction context. + * + * @param ctx the transaction context + * @param input the input data for the operation + * @return the result of the operation + */ + Object execute(TxContext ctx, Object input); +}