public class WaitForCommitCommand extends BaseCommand<Long>
Command for MongoMicroKernel#waitForCommit(String, long)nodeStore| Constructor and Description |
|---|
WaitForCommitCommand(MongoNodeStore nodeStore,
String oldHeadRevisionId,
long timeout)
Constructs a
WaitForCommitCommandMongo |
| Modifier and Type | Method and Description |
|---|---|
Long |
execute()
Executes the
Command and returns its result. |
getNumOfRetries, needsRetry, needsRetrypublic WaitForCommitCommand(MongoNodeStore nodeStore, String oldHeadRevisionId, long timeout)
WaitForCommitCommandMongonodeStore - Node store.oldHeadRevisionId - Id of earlier head revisiontimeout - The maximum time to wait in millisecondsCopyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.