Package net.carcdr.ycrdt
Interface YTransaction
- All Superinterfaces:
AutoCloseable
A transaction for batching multiple operations on a Y-CRDT document.
All operations within a transaction are applied atomically.
-
Method Summary
-
Method Details
-
commit
void commit()Explicitly commits the transaction. After calling commit, the transaction is closed. -
close
void close()Closes the transaction, committing any pending changes.- Specified by:
closein interfaceAutoCloseable
-
isClosed
boolean isClosed()Checks if this transaction has been closed.- Returns:
- true if closed, false otherwise
-