public class DatabaseJournal.DatabaseRevision extends Object implements InstanceRevision
Constructor and Description |
---|
DatabaseRevision() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the instance revision.
|
long |
get()
Return current instance revision.
|
protected long |
init(long revision)
Checks whether there's a local revision value in the database for this
cluster node.
|
void |
set(long localRevision)
Set current instance revision.
|
protected long init(long revision) throws JournalException
revision
- the default value for the local revision counterJournalException
- on errorpublic long get()
InstanceRevision
get
in interface InstanceRevision
public void set(long localRevision) throws JournalException
InstanceRevision
set
in interface InstanceRevision
localRevision
- new instance revisionJournalException
- if some error occurspublic void close()
InstanceRevision
close
in interface InstanceRevision
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.