|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transactor
Any object that want to be part of a configuration transaction should implement this interface.
Method Summary | |
---|---|
void |
abort(Transaction t)
Aborts this Transaction, reverting the state |
boolean |
canCommit(Transaction t)
Returns true of this Transaction can be committed on this object |
List<PropertyChangeEvent> |
commit(Transaction t)
Commit this Transaction. |
boolean |
join(Transaction t)
Enter a new Transaction, this method should return false if this object is already enlisted in another transaction, or cannot be enlisted with the passed transaction. |
Method Detail |
---|
boolean join(Transaction t)
t
- the transaction to enlist with
boolean canCommit(Transaction t) throws TransactionFailure
t
- is the transaction to commit, should be the same as the
one passed during the join(Transaction t) call.
TransactionFailure
- if the changes cannot be validatedList<PropertyChangeEvent> commit(Transaction t) throws TransactionFailure
t
- the transaction commiting.
TransactionFailure
- if the transaction commit failedvoid abort(Transaction t)
t
- the aborting transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |