|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdbm.helper.ActionVersioning
public class ActionVersioning
This is a helper class to keep track of versions assigned to actions. As client begin read only and read write actions, they call into this class and get the version they can use. As the clients end their actions, minimum read version any action is using is advanced and piggybacked to the client This class assumes that there is one readWrite action at a time.
| Nested Class Summary | |
|---|---|
static class |
ActionVersioning.Version
|
| Constructor Summary | |
|---|---|
ActionVersioning()
|
|
| Method Summary | |
|---|---|
ActionVersioning.Version |
beginReadAction()
Returns a version that can be used by the read only action |
ActionVersioning.Version |
beginWriteAction()
Returns back the new version to be used with the read/write action. |
ActionVersioning.Version |
endReadAction(ActionVersioning.Version version)
Called when the read action with the given action is ended. |
ActionVersioning.Version |
endWriteAction()
Called when the read/write action completes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionVersioning()
| Method Detail |
|---|
public ActionVersioning.Version beginWriteAction()
public ActionVersioning.Version endWriteAction()
public ActionVersioning.Version beginReadAction()
public ActionVersioning.Version endReadAction(ActionVersioning.Version version)
version - version of the read only action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||