|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.journal.FileRevision
public class FileRevision
Maintains a file-based revision counter with locking, assuring uniqueness.
| Constructor Summary | |
|---|---|
FileRevision(File file)
Creates a new file based revision counter. |
|
| Method Summary | |
|---|---|
void |
close()
Close file revision. |
long |
get()
Return current counter value. |
void |
set(long value)
Set current counter value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileRevision(File file)
throws JournalException
file - holding global counter
JournalException - if some error occurs| Method Detail |
|---|
public long get()
throws JournalException
get in interface InstanceRevisionJournalException - if some error occurs
public void set(long value)
throws JournalException
set in interface InstanceRevisionvalue - new counter value
JournalException - if some error occurspublic void close()
close in interface InstanceRevision
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||