|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.sync.impl.LogChangeReader.JEChangeTxn
public class LogChangeReader.JEChangeTxn
Constructor Summary | |
---|---|
LogChangeReader.JEChangeTxn(long txnId,
long startPoint)
|
Method Summary | |
---|---|
void |
discardChanges(Transaction txn)
Called when the changes in this transaction have been transferred to the external system, and they can be discarded locally. |
Set<String> |
getDatabaseNames()
Returns the names of all local databases that are effected by this transaction and that are part of a single data set (specified by getDataSetName). |
String |
getDataSetName()
Returns the name of the data set to which this transaction should be applied. |
Iterator<ChangeReader.Change> |
getOperations()
Returns an iterator over the changes in this transactions, for a single data set (specified by getDataSetName). |
long |
getTransactionId()
Returns the transction ID that can be shared with the external system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogChangeReader.JEChangeTxn(long txnId, long startPoint)
Method Detail |
---|
public long getTransactionId()
ChangeReader.ChangeTxn
getTransactionId
in interface ChangeReader.ChangeTxn
public String getDataSetName()
ChangeReader.ChangeTxn
getDataSetName
in interface ChangeReader.ChangeTxn
public Set<String> getDatabaseNames()
ChangeReader.ChangeTxn
getDatabaseNames
in interface ChangeReader.ChangeTxn
public Iterator<ChangeReader.Change> getOperations()
ChangeReader.ChangeTxn
This method may be called more than once for a single transaction to iterate over the changes multiple times.
getOperations
in interface ChangeReader.ChangeTxn
public void discardChanges(Transaction txn)
ChangeReader.ChangeTxn
The changes will not be discarded until the given txn has been committed. By using an XA transaction, the changes can be discarded locally only if they are also committed in the external system.
discardChanges
in interface ChangeReader.ChangeTxn
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |