|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgalois.runtime.Iteration
public class Iteration
Represents data accessed during an iteration.
| Constructor Summary | |
|---|---|
Iteration(int id)
|
|
| Method Summary | |
|---|---|
void |
acquire(Lockable lockable)
Acquires an abstract lock on the given object. |
static Iteration |
acquire(Lockable lockable,
byte flags)
Acquires an abstract lock on the given object if flags
contains MethodFlag.CHECK_CONFLICT. |
protected int |
clearLogs(boolean releaseLocks)
Clears undo logs, commit logs, conflict logs |
static Iteration |
getCurrentIteration()
Returns the currently executing iteration or null if no iteration is currently being executed. |
int |
getId()
|
protected void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Iteration(int id)
| Method Detail |
|---|
protected void reset()
public static Iteration getCurrentIteration()
public static Iteration acquire(Lockable lockable,
byte flags)
flags
contains MethodFlag.CHECK_CONFLICT. Returns the current iteration if
flags contains MethodFlag.CHECK_CONFLICT.
lockable - the object to lockflags - method flags
flags contains MethodFlag.CHECK_CONFLICTacquire(Lockable)public void acquire(Lockable lockable)
lockable - object to acquire an abstract lock onprotected int clearLogs(boolean releaseLocks)
public int getId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||