|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FailSafeTransaction
A failsafe transaction interface. By failsafe we mean here that the file concerned always stays in a coherent state.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
void restoreFile()
throws IllegalStateException,
IOException
IllegalStateException - if the file doesn't exists anymore
IOException - if an IOException occurs during the file restoration
void beginTransaction()
throws IllegalStateException,
IOException
IllegalStateException - if the file doesn't exists anymore
IOException - if an IOException occurs during the transaction
creation
void commit()
throws IllegalStateException,
IOException
IllegalStateException - if the file doesn't exists anymore
IOException - if an IOException occurs during the operation
void rollback()
throws IllegalStateException,
IOException
IllegalStateException - if the file doesn't exists anymore
IOException - if an IOException occurs during the operation
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||