[framework] TxCore → common-framework #4

Open
forge-bot wants to merge 9 commits from forge/ACM-FW-001-attempt-2-run-764de03d4a1a into main
Showing only changes of commit ebac6af45d - Show all commits

View file

@ -0,0 +1,18 @@
package com.klaro.acquirecore.framework;
/**
* Interface for transaction-aware services.
* Migrated from txcore.h TX_SERVICE callback structure.
*/
public interface TxService {
String getServiceName();
<T> TxResult<T> execute(TxServiceRegistry.TxOperation<T> operation);
TxContext beginTransaction();
TxResult<Void> commit(TxContext context);
TxResult<Void> rollback(TxContext context, String reason);
}