public class UpdateCommitLock extends Object
Commits themselves are not synchronized. It is allowed for two commits to run concurrently.
| Constructor and Description |
|---|
UpdateCommitLock() |
| Modifier and Type | Method and Description |
|---|---|
void |
lockForCommit()
Lock for commit.
|
void |
lockForUpdate()
Lock for update.
|
void |
releaseCommitLock()
Release commit lock.
|
void |
releaseUpdateLock()
Release update lock.
|
public void lockForUpdate()
throws InterruptedException
InterruptedException - the interrupted exceptionpublic void releaseUpdateLock()
public void lockForCommit()
throws InterruptedException
InterruptedException - the interrupted exceptionpublic void releaseCommitLock()
Copyright © 2009–2020 psi-probe. All rights reserved.