org.multiverse.stms.alpha
Class AlphaTranlocalSnapshot
java.lang.Object
org.multiverse.stms.alpha.AlphaTranlocalSnapshot
public abstract class AlphaTranlocalSnapshot
- extends Object
A snapshot of a AlphaTranlocal. This can be used to make a snapshot and restore an Tranlocal to that state
later when the transaction does a rollback. This functionality is useful for the orelse mechanism that requires
rollback on Tranlocals.
A TranlocalSnapshot also is a single linked list. This is done to prevent object creation overhead.
- Author:
- Peter Veentjer.
|
Method Summary |
abstract AlphaTranlocal |
getTranlocal()
The Tranlocal that created this TranlocalSnapshot. |
abstract void |
restore()
Does the rollback so that the Tranlocal is restored. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
___next
public AlphaTranlocalSnapshot ___next
- Each
AlphaTranlocalSnapshot can also be used as a single linked list. Normally you would not add this
kind of junk to your objects, but for performance reasons we make an exception. Object creation is very expensive
en should be reduced to a minimum.
AlphaTranlocalSnapshot
public AlphaTranlocalSnapshot()
getTranlocal
public abstract AlphaTranlocal getTranlocal()
- The Tranlocal that created this TranlocalSnapshot.
- Returns:
- the Tranlocal that created this AlphaTranlocalSnapshot.
restore
public abstract void restore()
- Does the rollback so that the Tranlocal is restored. This method should only be called as long as the Tranlocal
is not committed. No check is required to be done when it is committed.
Copyright © 2008-2010 Multiverse. All Rights Reserved.