Commit this transaction. This method flushes the journal entries created by the transaction to the journal buffer, optionally waits for those changes to be written durably to disk according to the default configured {@link CommitPolicy}, and marks the transaction as completed so that its effects are visible to other transactions.
If executed within the scope of an outer transaction, this method simply sets a flag indicating that the current transaction level has committed without modifying any data. The commit for the outermost transaction scope is responsible for actually committing the changes.
Once an application thread has called commit
, no subsequent Persistit database operations are permitted until the end
method has been called. An attempt to store, fetch or remove data after commit
has been called throws an IllegalStateException
.
commit
@throws PersistitException if a PersistitException was caught by the JOURNAL_FLUSHER thread after this transaction began waiting for durability
@see Persistit#getDefaultTransactionCommitPolicy()
|
|