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.Throwable
abort(java.lang.Throwable accumulate)
void
checkpoint()
void
close()
java.lang.Throwable
commit(java.lang.Throwable accumulate)
SSTableReader
current(SSTableReader reader)
boolean
isObsolete(SSTableReader reader)
boolean
isOffline()
void
obsolete(SSTableReader reader)
void
obsoleteOriginals()
OperationType
opType()
java.util.Set<SSTableReader>
originals()
void
prepareToCommit()
void
trackNew(SSTable table)
Called when a new table is about to be created, so that this table can be tracked by a transaction.void
untrackNew(SSTable table)
Called when a new table is no longer required, so that this table can be untracked by a transaction.void
update(java.util.Collection<SSTableReader> readers, boolean original)
void
update(SSTableReader reader, boolean original)
-
-
-
Constructor Detail
-
WrappedLifecycleTransaction
public WrappedLifecycleTransaction(ILifecycleTransaction delegate)
-
-
Method Detail
-
checkpoint
public void checkpoint()
- Specified by:
checkpoint
in interfaceILifecycleTransaction
-
update
public void update(SSTableReader reader, boolean original)
- Specified by:
update
in interfaceILifecycleTransaction
-
update
public void update(java.util.Collection<SSTableReader> readers, boolean original)
- Specified by:
update
in interfaceILifecycleTransaction
-
current
public SSTableReader current(SSTableReader reader)
- Specified by:
current
in interfaceILifecycleTransaction
-
obsolete
public void obsolete(SSTableReader reader)
- Specified by:
obsolete
in interfaceILifecycleTransaction
-
obsoleteOriginals
public void obsoleteOriginals()
- Specified by:
obsoleteOriginals
in interfaceILifecycleTransaction
-
originals
public java.util.Set<SSTableReader> originals()
- Specified by:
originals
in interfaceILifecycleTransaction
-
isObsolete
public boolean isObsolete(SSTableReader reader)
- Specified by:
isObsolete
in interfaceILifecycleTransaction
-
commit
public java.lang.Throwable commit(java.lang.Throwable accumulate)
- Specified by:
commit
in interfaceTransactional
-
abort
public java.lang.Throwable abort(java.lang.Throwable accumulate)
- Specified by:
abort
in interfaceTransactional
-
prepareToCommit
public void prepareToCommit()
- Specified by:
prepareToCommit
in interfaceTransactional
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceTransactional
-
trackNew
public void trackNew(SSTable table)
Description copied from interface:LifecycleNewTracker
Called when a new table is about to be created, so that this table can be tracked by a transaction.- Specified by:
trackNew
in interfaceLifecycleNewTracker
- Parameters:
table
- - the new table to be tracked
-
untrackNew
public void untrackNew(SSTable table)
Description copied from interface:LifecycleNewTracker
Called when a new table is no longer required, so that this table can be untracked by a transaction.- Specified by:
untrackNew
in interfaceLifecycleNewTracker
- Parameters:
table
- - the table to be untracked
-
opType
public OperationType opType()
- Specified by:
opType
in interfaceLifecycleNewTracker
- Returns:
- the type of operation tracking these sstables
-
isOffline
public boolean isOffline()
- Specified by:
isOffline
in interfaceILifecycleTransaction
-
-