public class WrappedLifecycleTransaction extends java.lang.Object implements ILifecycleTransaction
Transactional.AbstractTransactional
Constructor and Description |
---|
WrappedLifecycleTransaction(ILifecycleTransaction delegate) |
Modifier and Type | Method and 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) |
public WrappedLifecycleTransaction(ILifecycleTransaction delegate)
public void checkpoint()
checkpoint
in interface ILifecycleTransaction
public void update(SSTableReader reader, boolean original)
update
in interface ILifecycleTransaction
public void update(java.util.Collection<SSTableReader> readers, boolean original)
update
in interface ILifecycleTransaction
public SSTableReader current(SSTableReader reader)
current
in interface ILifecycleTransaction
public void obsolete(SSTableReader reader)
obsolete
in interface ILifecycleTransaction
public void obsoleteOriginals()
obsoleteOriginals
in interface ILifecycleTransaction
public java.util.Set<SSTableReader> originals()
originals
in interface ILifecycleTransaction
public boolean isObsolete(SSTableReader reader)
isObsolete
in interface ILifecycleTransaction
public java.lang.Throwable commit(java.lang.Throwable accumulate)
commit
in interface Transactional
public java.lang.Throwable abort(java.lang.Throwable accumulate)
abort
in interface Transactional
public void prepareToCommit()
prepareToCommit
in interface Transactional
public void close()
close
in interface java.lang.AutoCloseable
close
in interface Transactional
public void trackNew(SSTable table)
LifecycleNewTracker
trackNew
in interface LifecycleNewTracker
table
- - the new table to be trackedpublic void untrackNew(SSTable table)
LifecycleNewTracker
untrackNew
in interface LifecycleNewTracker
table
- - the table to be untrackedpublic OperationType opType()
opType
in interface LifecycleNewTracker
public boolean isOffline()
isOffline
in interface ILifecycleTransaction
Copyright © 2009- The Apache Software Foundation