Class WrappedLifecycleTransaction
java.lang.Object
org.apache.cassandra.db.lifecycle.WrappedLifecycleTransaction
- All Implemented Interfaces:
AutoCloseable,ILifecycleTransaction,LifecycleNewTracker,Transactional
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Transactional
Transactional.AbstractTransactional -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()current(SSTableReader reader) booleanisObsolete(SSTableReader reader) booleanvoidobsolete(SSTableReader reader) voidopType()voidvoidCalled 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(Collection<SSTableReader> readers, boolean original) voidupdate(SSTableReader reader, boolean original)
-
Constructor Details
-
WrappedLifecycleTransaction
-
-
Method Details
-
checkpoint
public void checkpoint()- Specified by:
checkpointin interfaceILifecycleTransaction
-
update
- Specified by:
updatein interfaceILifecycleTransaction
-
update
- Specified by:
updatein interfaceILifecycleTransaction
-
current
- Specified by:
currentin interfaceILifecycleTransaction
-
obsolete
- Specified by:
obsoletein interfaceILifecycleTransaction
-
obsoleteOriginals
public void obsoleteOriginals()- Specified by:
obsoleteOriginalsin interfaceILifecycleTransaction
-
originals
- Specified by:
originalsin interfaceILifecycleTransaction
-
isObsolete
- Specified by:
isObsoletein interfaceILifecycleTransaction
-
commit
- Specified by:
commitin interfaceTransactional
-
abort
- Specified by:
abortin interfaceTransactional
-
prepareToCommit
public void prepareToCommit()- Specified by:
prepareToCommitin interfaceTransactional
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceTransactional
-
trackNew
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
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
- Specified by:
opTypein interfaceLifecycleNewTracker- Returns:
- the type of operation tracking these sstables
-
isOffline
public boolean isOffline()- Specified by:
isOfflinein interfaceILifecycleTransaction
-