public interface FailSafeTransaction
Modifier and Type | Method and Description |
---|---|
void |
beginTransaction()
Begins a new transaction.
|
void |
commit()
Closes the transaction and commit the changes.
|
void |
restoreFile()
Ensure that the file accessed is in a coherent state.
|
void |
rollback()
Closes the transation and cancel the changes.
|
void restoreFile() throws java.lang.IllegalStateException, java.io.IOException
java.lang.IllegalStateException
- if the file doesn't exists anymorejava.io.IOException
- if an IOException occurs during the file restorationvoid beginTransaction() throws java.lang.IllegalStateException, java.io.IOException
java.lang.IllegalStateException
- if the file doesn't exists anymorejava.io.IOException
- if an IOException occurs during the transaction
creationvoid commit() throws java.lang.IllegalStateException, java.io.IOException
java.lang.IllegalStateException
- if the file doesn't exists anymorejava.io.IOException
- if an IOException occurs during the operationvoid rollback() throws java.lang.IllegalStateException, java.io.IOException
java.lang.IllegalStateException
- if the file doesn't exists anymorejava.io.IOException
- if an IOException occurs during the operation
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.