Class WrappedLifecycleTransaction
- java.lang.Object
-
- org.apache.cassandra.db.lifecycle.WrappedLifecycleTransaction
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ILifecycleTransaction,LifecycleNewTracker,Transactional
public class WrappedLifecycleTransaction extends java.lang.Object implements ILifecycleTransaction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Transactional
Transactional.AbstractTransactional
-
-
Constructor Summary
Constructors Constructor Description WrappedLifecycleTransaction(ILifecycleTransaction delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwableabort(java.lang.Throwable accumulate)voidcheckpoint()voidclose()java.lang.Throwablecommit(java.lang.Throwable accumulate)SSTableReadercurrent(SSTableReader reader)booleanisObsolete(SSTableReader reader)booleanisOffline()voidobsolete(SSTableReader reader)voidobsoleteOriginals()OperationTypeopType()java.util.Set<SSTableReader>originals()voidprepareToCommit()voidtrackNew(SSTable table)Called when a new table is about to be created, so that this table can be tracked by a transaction.voiduntrackNew(SSTable table)Called when a new table is no longer required, so that this table can be untracked by a transaction.voidupdate(java.util.Collection<SSTableReader> readers, boolean original)voidupdate(SSTableReader reader, boolean original)
-
-
-
Constructor Detail
-
WrappedLifecycleTransaction
public WrappedLifecycleTransaction(ILifecycleTransaction delegate)
-
-
Method Detail
-
checkpoint
public void checkpoint()
- Specified by:
checkpointin interfaceILifecycleTransaction
-
update
public void update(SSTableReader reader, boolean original)
- Specified by:
updatein interfaceILifecycleTransaction
-
update
public void update(java.util.Collection<SSTableReader> readers, boolean original)
- Specified by:
updatein interfaceILifecycleTransaction
-
current
public SSTableReader current(SSTableReader reader)
- Specified by:
currentin interfaceILifecycleTransaction
-
obsolete
public void obsolete(SSTableReader reader)
- Specified by:
obsoletein interfaceILifecycleTransaction
-
obsoleteOriginals
public void obsoleteOriginals()
- Specified by:
obsoleteOriginalsin interfaceILifecycleTransaction
-
originals
public java.util.Set<SSTableReader> originals()
- Specified by:
originalsin interfaceILifecycleTransaction
-
isObsolete
public boolean isObsolete(SSTableReader reader)
- Specified by:
isObsoletein interfaceILifecycleTransaction
-
commit
public java.lang.Throwable commit(java.lang.Throwable accumulate)
- Specified by:
commitin interfaceTransactional
-
abort
public java.lang.Throwable abort(java.lang.Throwable accumulate)
- Specified by:
abortin interfaceTransactional
-
prepareToCommit
public void prepareToCommit()
- Specified by:
prepareToCommitin interfaceTransactional
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceTransactional
-
trackNew
public void trackNew(SSTable table)
Description copied from interface:LifecycleNewTrackerCalled when a new table is about to be created, so that this table can be tracked by a transaction.- Specified by:
trackNewin interfaceLifecycleNewTracker- Parameters:
table- - the new table to be tracked
-
untrackNew
public void untrackNew(SSTable table)
Description copied from interface:LifecycleNewTrackerCalled when a new table is no longer required, so that this table can be untracked by a transaction.- Specified by:
untrackNewin interfaceLifecycleNewTracker- Parameters:
table- - the table to be untracked
-
opType
public OperationType opType()
- Specified by:
opTypein interfaceLifecycleNewTracker- Returns:
- the type of operation tracking these sstables
-
isOffline
public boolean isOffline()
- Specified by:
isOfflinein interfaceILifecycleTransaction
-
-