public interface PartitionTxn extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort a transaction.
|
void |
close()
Commit the transaction.
|
void |
commit()
Commit a write transaction.
|
boolean |
isClosed()
Tells if the transaction has been committed/aborted or not.
|
void commit() throws IOException
IOException
- If the commit failedvoid abort() throws IOException
PartitionReadTxn
, it will unlink this transaction
from the version it used. If it's a PartitionWriteTxn
; it will drop all the pending
changes. The latest version will remain the same.IOException
- If the abort failedboolean isClosed()
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.