Class MemoryRevision
- java.lang.Object
-
- org.apache.jackrabbit.core.journal.MemoryRevision
-
- All Implemented Interfaces:
InstanceRevision
public class MemoryRevision extends Object implements InstanceRevision
Memory-based revision, useful for testing purposes only.
-
-
Constructor Summary
Constructors Constructor Description MemoryRevision()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the instance revision.long
get()
Return current instance revision.void
set(long value)
Set current instance revision.
-
-
-
Method Detail
-
get
public long get() throws JournalException
Return current instance revision.- Specified by:
get
in interfaceInstanceRevision
- Returns:
- instance revision
- Throws:
JournalException
- if some error occurs
-
set
public void set(long value) throws JournalException
Set current instance revision.- Specified by:
set
in interfaceInstanceRevision
- Parameters:
value
- new instance revision- Throws:
JournalException
- if some error occurs
-
close
public void close()
Closes the instance revision.- Specified by:
close
in interfaceInstanceRevision
-
-