public interface Rollbackable
Red (tfeng) |
Red (tfeng) |
Modifier and Type | Method and Description |
---|---|
void |
$COMMIT(long timestamp)
Commit changes up to the given timestamp, but not including changes
made at timestamp and afterward.
|
Checkpoint |
$GET$CHECKPOINT()
Get the checkpoint object that monitors this rollbackable object.
|
void |
$RESTORE(long timestamp,
boolean trim)
Restore a previous state to all the private fields of this rollbackable
object.
|
java.lang.Object |
$SET$CHECKPOINT(Checkpoint checkpoint)
Set the checkpoint object of this rollbackable object.
|
void $COMMIT(long timestamp)
timestamp
- The timestamp.Checkpoint $GET$CHECKPOINT()
void $RESTORE(long timestamp, boolean trim)
timestamp
- The timestamp taken at the time when the previous
state was recorded.trim
- Whether to delete the records used for the rollback.Checkpoint.rollback(long, boolean)
java.lang.Object $SET$CHECKPOINT(Checkpoint checkpoint)
checkpoint
- The new checkpoint object.Checkpoint.setCheckpoint(Checkpoint)