public class CommitGate extends Object
| Constructor and Description |
|---|
CommitGate() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(String newHead)
Commit a new head.
|
String |
waitForCommit(String lastHead,
long millis)
Wait for a new commit to occur.
|
public String waitForCommit(String lastHead, long millis) throws InterruptedException
lastHead - the last headmillis - the maximum number of milliseconds to wait (0 means don't wait)InterruptedException - if the thread was interruptedpublic void commit(String newHead)
newHead - the new headCopyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.