Interface TxLog
-
- All Superinterfaces:
BaseStore
- All Known Subinterfaces:
ObjectStoreAPI,ParticipantStore,RecoveryStore
- All Known Implementing Classes:
ObjectStore,ParticipantStoreProxy,RecoveryStoreProxy,TxLogProxy
public interface TxLog extends BaseStore
All transaction logs MUST implement this interface.- Since:
- JTS 1.0.
- Version:
- $Id: ObjectStore.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanremove_committed(Uid u, String tn)Remove the object's committed state.voidsync()Some object store implementations may be running with automatic sync disabled.booleanwrite_committed(Uid u, String tn, OutputObjectState buff)Write a new copy of the object's committed state.-
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.BaseStore
getStoreName, start, stop
-
-
-
-
Method Detail
-
remove_committed
boolean remove_committed(Uid u, String tn) throws ObjectStoreException
Remove the object's committed state.- Parameters:
u- The object to work on.tn- The type of the object to work on.- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
write_committed
boolean write_committed(Uid u, String tn, OutputObjectState buff) throws ObjectStoreException
Write a new copy of the object's committed state.- Parameters:
u- The object to work on.tn- The type of the object to work on.buff- The state to write.- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
sync
void sync() throws SyncFailedException, ObjectStoreException
Some object store implementations may be running with automatic sync disabled. Calling this method will ensure that any states are flushed to disk.
-
-