Interface TxnHandler
- All Known Implementing Classes:
TxnHandlerImpl
public interface TxnHandler
Callbacks for reacting to events during the life cycle management of transactions.
The most relevant callback is
beforeUnlock(Path, boolean): At this point
resources have been written and are in their final location but the lock is still held.
This allows one to e.g. safely read the last modified timestamp of a just committed file
before another transaction can modify it again.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterPreCommit(Path<String> resKey) default voidbeforePreCommit(Path<String> resKey) default voidbeforeUnlock(Path<String> resKey, boolean isCommit) default voidend()
-
Method Details
-
beforePreCommit
-
afterPreCommit
-
beforeUnlock
-
end
default void end()
-